[issue45224] Argparse shows required arguments as optional
Khalid Mammadov
report at bugs.python.org
Thu Sep 16 16:15:46 EDT 2021
Khalid Mammadov <khalidmammadov9 at gmail.com> added the comment:
May I suggest to change it again so we two sections: required and optional? This can help to be more clear from usage perspective. I have changed it locally and it looks like below:
usage: myprogram.py [-h] [--foo FOO] --bar BAR
required arguments:
--bar BAR foo help
optional arguments:
-h, --help show this help message and exit
--foo FOO foo help
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45224>
_______________________________________
More information about the Python-bugs-list
mailing list