[issue10424] better error message from argparse when positionals missing

R. David Murray report at bugs.python.org
Thu May 26 18:49:44 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

I would remove the docstring from the new test class...if more tests of message content are added that docstring won't be accurate.  It really isn't needed.  (Also, shouldn't the test method be named test_missingarguments?)

I would also like to see a test where there are optional non-option arguments (nargs='?'), where you test that the optional one does *not* appear in the message.  That'll give you a second test method, making that test class a *little* less trivial :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10424>
_______________________________________


More information about the Python-bugs-list mailing list