[New-bugs-announce] [issue12284] argparse.ArgumentParser: usage example option
Jonas H.
report at bugs.python.org
Wed Jun 8 15:39:42 CEST 2011
New submission from Jonas H. <jonas at lophus.org>:
I'd like to see an `examples` option added to argparse.ArgumentParser as found in many man pages.
This could also be done using the `epilog` option, but that misses the "%(proc)s" replacement which makes usage examples like this
Example usage:
./script.py option1 option2
impossible.
----------
components: Library (Lib)
messages: 137905
nosy: jonash
priority: normal
severity: normal
status: open
title: argparse.ArgumentParser: usage example option
type: feature request
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12284>
_______________________________________
More information about the New-bugs-announce
mailing list