[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

Michael Blahay report at bugs.python.org
Fri May 10 16:17:58 EDT 2019


Michael Blahay <mblahay at gmail.com> added the comment:

Much detail has been provided regarding why the default is ignored when user the REMAINDER option. The desire to add an exception has not. Is there anyone that can provide guidance on whether the combination of:
1. Positional Argument 
2. nargs=REMAINDER
3. default=something  
should raise an exception upon execution of the add_argument method?

----------

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


More information about the Python-bugs-list mailing list