[New-bugs-announce] [issue13818] argparse: -h listening required options under optional arguments

Miguel Godinho report at bugs.python.org
Wed Jan 18 20:23:55 CET 2012


New submission from Miguel Godinho <m at miguelgodinho.com>:

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').

----------
components: Library (Lib)
messages: 151562
nosy: mgodinho
priority: normal
severity: normal
status: open
title: argparse: -h listening required options under optional arguments
type: behavior
versions: Python 2.7

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


More information about the New-bugs-announce mailing list