Some option lines are not being parsed correctly
lambdaknight opened this issue · comments
Turing Eret commented
If I have the following DocOpt doc string:
private const string usage = @"Test
Usage:
test.exe test [--verbose] [--testopt]
test.exe (-h | --help)
Commands:
test
test stuff
-t, --testopt A test option
General Options:
-v, --verbose Enables verbose output.
-h, --help Show this screen.";
...and I call "test.exe test -t", I get the usage screen and DocOpt fails to parse the options correctly. The program only responds to "--testopt". If I use the same doc string using the Ruby implementation, it responds to "-t" just fine and properly sets the "--testopt" option to true.
Turing Eret commented
Actually, testing this on the Python implementation, it appears as if the Python exhibits the same behavior as docopt.net, so this looks like something that docopt.rb does differently. I'm going to close this and resubmit in docopt/docopt as a feature request.