[New-bugs-announce] [issue6247] should we include argparse
Ritesh Raj Sarraf
report at bugs.python.org
Tue Jun 9 08:40:28 CEST 2009
New submission from Ritesh Raj Sarraf <rrs at researchut.com>:
Shoudl argparse be included in the Python Standard Library.
I know we already have getopt and optparse but optparse doesn't
support many features easily. (like options without hyphen, nargs=*)
Here a little about argparse:
argparse: Python command line parser
The argparse module makes writing command line tools in Python easy.
Just briefly describe your command line interface and argparse will take
care of the rest, including:
parsing the arguments and flags from sys.argv
converting arg strings into objects for your program
formatting and printing any help messages
and much more ...
For those familiar with the optparse module from the Python standard
library, argparse improves on this module in a number of ways, including:
handling positional arguments
supporting sub-commands
allowing alternative option prefixes like + and /
handling zero-or-more and one-or-more style arguments
producing more informative usage messages
providing a much simpler interface for custom types and actions
----------
components: Extension Modules
messages: 89134
nosy: rickysarraf
severity: normal
status: open
title: should we include argparse
type: feature request
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6247>
_______________________________________
More information about the New-bugs-announce
mailing list