LogoopenSUSE Build Service > Projects
Sign Up | Log In

Python command-line parsing library

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.

Source Files

Filename Size Changed Actions
argparse-1.1.pdf 239 KB Download File
argparse-1.3.0.tar.gz 91.1 KB Download File
python-argparse.changes 3.45 KB Download File
python-argparse.spec 2.55 KB Download File

Comments for home:porscheinformatik:devel:languages:python (0)

Login required, please login or signup in order to comment