Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation lacks topics on escaping and option/value assignment operators #58

Closed
ericnewton76 opened this issue Nov 4, 2017 · 1 comment

Comments

@ericnewton76
Copy link
Member

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:

  1. 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?

  2. 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.

@ericnewton76
Copy link
Member Author

Comment by nemec
Tuesday Jan 19, 2016 at 21:34 GMT


Hi Filip,

  1. 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.
  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants