summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Summerfield <list@qtrac.plus.com>2008-09-08 14:45:37 (GMT)
committerMark Summerfield <list@qtrac.plus.com>2008-09-08 14:45:37 (GMT)
commitffde3cfcb181b83e7a43f3f3a10f08c64007b4ed (patch)
treeedb2d338180a9ad14009ef79eb0cc90f4e8437f2
parent3f5fda8c5071e81e67b3b34d485b9bb4f2c6de1d (diff)
downloadcpython-ffde3cfcb181b83e7a43f3f3a10f08c64007b4ed.zip
cpython-ffde3cfcb181b83e7a43f3f3a10f08c64007b4ed.tar.gz
cpython-ffde3cfcb181b83e7a43f3f3a10f08c64007b4ed.tar.bz2
Added xrefs to each other.
-rw-r--r--Doc/library/getopt.rst7
-rw-r--r--Doc/library/optparse.rst2
2 files changed, 7 insertions, 2 deletions
diff --git a/Doc/library/getopt.rst b/Doc/library/getopt.rst
index 9277b96..a666d0a 100644
--- a/Doc/library/getopt.rst
+++ b/Doc/library/getopt.rst
@@ -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
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
-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:
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst
index d74256d..6ba0264 100644
--- a/Doc/library/optparse.rst
+++ b/Doc/library/optparse.rst
@@ -12,7 +12,7 @@
``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`,
populate it with options, and parse the command line. ``optparse`` allows users
to specify options in the conventional GNU/POSIX syntax, and additionally