Open grosu opened 11 years ago
I'll check this but I don't understand how second case(correct one) works.
There is a space between " and - :)
Hm... this might be related to issue #163 . It looks very similar.
I found the problem but I'm not sure what to do about it. The problem is a double quote delimited string specifies exactly one program argument, and when a program argument starts with a dash(-
), it's considered as named argument like -directory something
by our command line argument parser library. I think this makes sense. We can't do something like "consider argument as unnamed argument if you can't parse name of the argument" because if we do this than it accepts all kinds of wrong arguments like -dirctory something
(note the typo in name part) or -7 something
(here 7
is name or the argument).
So it's like how it's working and not a bug. If an argument starts with -
, then it's a named argument and it's name will be looked up in our named parameter list which is listed in --help
message.
Blocked on #244.