[Python-checkins] r66306 - in python/trunk/Doc/library: getopt.rst optparse.rst
mark.summerfield
python-checkins at python.org
Mon Sep 8 16:45:37 CEST 2008
Author: mark.summerfield
Date: Mon Sep 8 16:45:37 2008
New Revision: 66306
Log:
Added xrefs to each other.
Modified:
python/trunk/Doc/library/getopt.rst
python/trunk/Doc/library/optparse.rst
Modified: python/trunk/Doc/library/getopt.rst
==============================================================================
--- python/trunk/Doc/library/getopt.rst (original)
+++ python/trunk/Doc/library/getopt.rst Mon Sep 8 16:45:37 2008
@@ -11,7 +11,12 @@
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:
Modified: python/trunk/Doc/library/optparse.rst
==============================================================================
--- python/trunk/Doc/library/optparse.rst (original)
+++ python/trunk/Doc/library/optparse.rst Mon Sep 8 16:45:37 2008
@@ -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
More information about the Python-checkins
mailing list