This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: argparse: -h listening required options under optional arguments
Type: behavior Stage: test needed
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: argparse required arguments displayed under "optional arguments"
View: 9694
Assigned To: Nosy List: bethard, mgodinho
Priority: normal Keywords:

Created on 2012-01-18 19:23 by mgodinho, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (1)
msg151562 - (view) Author: Miguel Godinho (mgodinho) Date: 2012-01-18 19:23
Adding a 'required optional argument' as with:
```
app.add_argument('--dbsnp', required=True)
```

will still result on having that argument listed under the optional when the app is called with the help option (-h)

Please note that the usage line is rendered ok (no square brackets around the 'required optional argument').
History
Date User Action Args
2022-04-11 14:57:25adminsetgithub: 58026
2012-07-21 22:06:01bethardsetstatus: open -> closed
superseder: argparse required arguments displayed under "optional arguments"
resolution: duplicate
2012-01-21 04:52:28terry.reedysetnosy: + bethard

stage: test needed
2012-01-18 19:23:54mgodinhocreate