Wolfgang Maier added the comment:
try this:
parser.add_argument('file', nargs='?', default = argparse.SUPPRESS)
I don't think this is a bug. The default for the default parameter is None so
the behavior is consistent with the documentation.
----------
nosy: +wolma
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28734>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com