Mandatory options aren't very useful #194
Labels
next-breaking-release
An issue that fixing would require a breaking change, but doesn't justify on its own a breakage.
type-enhancement
A request for a change that isn't a bug
This was raised by https://stackoverflow.com/q/67384823/.
Currently the presence of a mandatory option (added by #177) will cause
ArgParser.parse
to throw an exception whenever the option is omitted. I don't think that this is very useful in practice since it breaks--help
.#156 requested adding an equivalent of
required
options from Python's argparse module, but note that Python's argparse:action='help'
mechanism for specifying an option that should print help.-h
/--help
by default.In contrast,
package:args
'sArgParser
currently is not opinionated about how help should be handled, and-h
/--help
is typically handled by an ordinary boolean flag.The text was updated successfully, but these errors were encountered: