mirror of
https://github.com/python/cpython.git
synced 2026-10-28 10:25:05 +08:00
Remove outdated information from optparse module docstring and docs (#157982)
This commit is contained in:
1 parent
ee1bbf037f
commit
499dff16d5
2 files changed
+2
-12
No files matched your search
@@ -16,15 +16,12 @@ Choosing an argument parsing library
|
||||
The standard library includes three argument parsing libraries:
|
||||
|
||||
* :mod:`getopt`: a module that closely mirrors the procedural C ``getopt`` API.
|
||||
Included in the standard library since before the initial Python 1.0 release.
|
||||
* :mod:`!optparse`: a declarative replacement for ``getopt`` that
|
||||
provides equivalent functionality without requiring each application
|
||||
to implement its own procedural option parsing logic. Included
|
||||
in the standard library since the Python 2.3 release.
|
||||
to implement its own procedural option parsing logic.
|
||||
* :mod:`argparse`: a more opinionated alternative to ``optparse`` that
|
||||
provides more functionality by default, at the expense of reduced application
|
||||
flexibility in controlling exactly how arguments are processed. Included in
|
||||
the standard library since the Python 2.7 and Python 3.2 releases.
|
||||
flexibility in controlling exactly how arguments are processed.
|
||||
|
||||
In the absence of more specific argument parsing design constraints, :mod:`argparse`
|
||||
is the recommended choice for implementing command line applications, as it offers
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
"""A powerful, extensible, and easy-to-use option parser.
|
||||
|
||||
By Greg Ward <gward@python.net>
|
||||
|
||||
Originally distributed as Optik.
|
||||
|
||||
For support, use the optik-users@lists.sourceforge.net mailing list
|
||||
(http://lists.sourceforge.net/lists/listinfo/optik-users).
|
||||
|
||||
Simple usage example:
|
||||
|
||||
from optparse import OptionParser
|
||||
|
||||
Reference in new issue
Block a user