[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#532564: ITP: argparse -- argparse: Python command line parser



Package: wnpp
Severity: wishlist
Owner: Ritesh Raj Sarraf <rrs@researchut.com>

* Package name    : argparse
  Version         : 0.9.1
  Upstream Author : Steven Bethard <steven.bethard@gmail.com>
* URL             : http://code.google.com/p/argparse
* License         : Apache 2.0
  Programming Lang: Python
  Description     : 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



Reply to: