Initial commit of the argparse library, based on argparse 1.1.
Docs still need some updating to make getopt and optparse match the wording promised in the PEP. There are also probably a number of :class:ArgumentParser etc. links that could be added to the argparse documentation.
This commit is contained in:
parent
41162ebdad
commit
e9330e7941
|
@ -16,6 +16,7 @@ but they are available on most other systems as well. Here's an overview:
|
|||
os.rst
|
||||
io.rst
|
||||
time.rst
|
||||
argparse.rst
|
||||
optparse.rst
|
||||
getopt.rst
|
||||
logging.rst
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
|
||||
:mod:`getopt` --- Parser for command line options
|
||||
=================================================
|
||||
:mod:`getopt` --- C-style parser for command line options
|
||||
=========================================================
|
||||
|
||||
.. module:: getopt
|
||||
:synopsis: Portable parser for command line options; support both short and long option
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
:mod:`optparse` --- More powerful command line option parser
|
||||
============================================================
|
||||
:mod:`optparse` --- Parser for command line options
|
||||
===================================================
|
||||
|
||||
.. module:: optparse
|
||||
:synopsis: More convenient, flexible, and powerful command-line parsing library.
|
||||
:synopsis: Command-line option parsing library.
|
||||
.. moduleauthor:: Greg Ward <gward@python.net>
|
||||
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ three`` at the command line::
|
|||
|
||||
The :mod:`getopt` module processes *sys.argv* using the conventions of the Unix
|
||||
:func:`getopt` function. More powerful and flexible command line processing is
|
||||
provided by the :mod:`optparse` module.
|
||||
provided by the :mod:`argparse` module.
|
||||
|
||||
|
||||
.. _tut-stderr:
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue