Closed SoftwareApe closed 3 years ago
You specify a parser with an option argument. E.g.
var argparser = newParser("my prog"): option("-f", "--file", multiple=false, help="File to process") run: ...
If you call this program with
argparser.run(commandLineParams())
and then only supply e.g. the option "-f" you get an IndexError.
Instead of an index error print a help message that the option is missing a value.
Fixed in v1.0.0
Behavior
You specify a parser with an option argument. E.g.
If you call this program with
and then only supply e.g. the option "-f" you get an IndexError.
Expected Behavior
Instead of an index error print a help message that the option is missing a value.