Python command-line parsing library
http://code.google.com/p/argparse
The argparse module provides an easy, declarative interface for creating command line tools, which knows how to:
- parse the arguments and flags from sys.argv;
- convert arg strings into objects for your program;
- format and print informative help messages;
- and much more...
The argparse module improves on the standard library optparse 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.
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout systemsmanagement:saltstack:products/python-argparse && cd $_ - Create Badge
Refresh
Source Files
| Filename | Size | Changed |
|---|---|---|
| argparse-1.4.0.tar.gz | 0000070508 68.9 KB | |
| python-argparse.changes | 0000004402 4.3 KB | |
| python-argparse.spec | 0000002772 2.71 KB |
Comments 0