[issue9694] argparse required arguments displayed under "optional arguments"

Shahar Golan report at bugs.python.org
Wed Mar 23 10:51:39 EDT 2016


Shahar Golan added the comment:

This is not just a section issue. Please note that using the ArgumentDefaultHelpFormatter:

  argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultHelpFormatter)

The help will also show (default=None) for these required arguments.

----------
components:  -Documentation
nosy: +shaharg
versions:  -Python 3.3, Python 3.4, Python 3.5

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


More information about the Python-bugs-list mailing list