commandlineparser / commandlineparser/commandline

How to convert string to string[]

Aperta
#679 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
4.8k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I have this string:
--text "Hello World" --desc "Prints hello world to the screen"
Using string.split(' '); splits it on every space including inside the quotes

Is there any function to split this string with respect to the quotes so I can parse it as a string[]?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.