Closed GoogleCodeExporter closed 9 years ago
I believe this is a correct behavior.
OPTIONAL_ARGUMENT means that an option does not need a value, but will accept
it when specified.
This means:
--enabletrace => default value (false); no option specified; correct.
--enabletrace xyz => default value (false); the "xyz" string is considered to
be program's main argument and not an option.
--enabletrace xyz --api ABC => "xyz" is the (optional) value.
--enabletrace --api ABC => enabletrace=true; the (optional) value was not
specified but the option was present.
Original comment by ondrej.zara
on 25 Nov 2011 at 8:32
Original comment by ondrej.zara
on 12 Dec 2011 at 8:24
Original issue reported on code.google.com by
andy.bis...@gmail.com
on 25 Nov 2011 at 10:36