[issue38438] argparse "usage" overly-complex with nargs="*"

Eric V. Smith report at bugs.python.org
Fri Oct 11 13:31:45 EDT 2019


Eric V. Smith <eric at trueblade.com> added the comment:

I don't think it's any more precise. It just seems verbose and confusing to me, while conveying the same information.

`[arg [arg ...]]` to me means "optionally, an arg followed by one or more optional args".

While `[arg ...]` to  me means "optionally, one or more args".

So, I'd vote for the simpler version, especially since we're presumably trying to communicate with people who aren't BNF or regex experts!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38438>
_______________________________________


More information about the Python-bugs-list mailing list