You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the library, it seems quite well thought out!
I've stumbled on two problems though:
I first tried passing option values like this:
myApp.exe -o:123
This yielded option "o" value of ":123".
I then found some text in the wiki that suggests you can just do -o123 or -o=123 or -o 123 which I'll have to play with. Are these the only options supported? Is there a way to configure a colon as an assignment operator?
Then I stumbled on passing in paths that might have spaces in them. I'm still working on figuring it out, but I had some problem when first trying it with this syntax:
myApp-exe -f"C:\My Folder\My File.txt"
It would help to explain these topics a bit better.
The text was updated successfully, but these errors were encountered:
Comment by nemec Tuesday Jan 19, 2016 at 21:34 GMT
Hi Filip,
Nope, as the wiki says it accepts the getopt style of assignment, which is either no space, an equals, or a space. It isn't configurable but you're right, it should be spelled out in the wiki.
You will need to put a space between -f and the string -- .Net does the quote parsing for the app but won't parse the quote unless it's the first character.
Issue by xyzzer
Tuesday Jan 19, 2016 at 07:10 GMT
Originally opened as gsscoder/commandline#280
Hi,
Thanks for the library, it seems quite well thought out!
I've stumbled on two problems though:
I first tried passing option values like this:
myApp.exe -o:123
This yielded option "o" value of ":123".
I then found some text in the wiki that suggests you can just do -o123 or -o=123 or -o 123 which I'll have to play with. Are these the only options supported? Is there a way to configure a colon as an assignment operator?
Then I stumbled on passing in paths that might have spaces in them. I'm still working on figuring it out, but I had some problem when first trying it with this syntax:
myApp-exe -f"C:\My Folder\My File.txt"
It would help to explain these topics a bit better.
The text was updated successfully, but these errors were encountered: