]> granicus.if.org Git - python/commitdiff
Added xrefs to each other.
authorMark Summerfield <list@qtrac.plus.com>
Mon, 8 Sep 2008 14:45:37 +0000 (14:45 +0000)
committerMark Summerfield <list@qtrac.plus.com>
Mon, 8 Sep 2008 14:45:37 +0000 (14:45 +0000)
Doc/library/getopt.rst
Doc/library/optparse.rst

index 9277b96f2af730c0521aac92171b28f09c0061aa..a666d0a1c64f7b3c4b05347f940263892a49d37c 100644 (file)
@@ -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:
 
 
index d74256d1d1940950cdd350a812c626ad2c4ba743..6ba02640e7a8906703bfbb68c707914110bfd90a 100644 (file)
@@ -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