mirror of
https://github.com/python/cpython.git
synced 2025-09-19 07:00:59 +00:00
Added xrefs to each other.
This commit is contained in:
parent
3f5fda8c50
commit
ffde3cfcb1
2 changed files with 7 additions and 2 deletions
|
@ -11,7 +11,12 @@ This module helps scripts to parse the command line arguments in ``sys.argv``.
|
||||||
It supports the same conventions as the Unix :cfunc:`getopt` function (including
|
It supports the same conventions as the Unix :cfunc:`getopt` function (including
|
||||||
the special meanings of arguments of the form '``-``' and '``--``'). Long
|
the special meanings of arguments of the form '``-``' and '``--``'). Long
|
||||||
options similar to those supported by GNU software may be used as well via an
|
options similar to those supported by GNU software may be used as well via an
|
||||||
optional third argument. This module provides two functions and an
|
optional third argument.
|
||||||
|
|
||||||
|
A more convenient, flexible, and powerful alternative is the
|
||||||
|
:mod:`optparse` module.
|
||||||
|
|
||||||
|
This module provides two functions and an
|
||||||
exception:
|
exception:
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
|
|
||||||
``optparse`` is a more convenient, flexible, and powerful library for parsing
|
``optparse`` is a more convenient, flexible, and powerful library for parsing
|
||||||
command-line options than ``getopt``. ``optparse`` uses a more declarative
|
command-line options than the old :mod:`getopt` module. ``optparse`` uses a more declarative
|
||||||
style of command-line parsing: you create an instance of :class:`OptionParser`,
|
style of command-line parsing: you create an instance of :class:`OptionParser`,
|
||||||
populate it with options, and parse the command line. ``optparse`` allows users
|
populate it with options, and parse the command line. ``optparse`` allows users
|
||||||
to specify options in the conventional GNU/POSIX syntax, and additionally
|
to specify options in the conventional GNU/POSIX syntax, and additionally
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue