File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,15 +16,12 @@ Choosing an argument parsing library
1616The standard library includes three argument parsing libraries:
1717
1818* :mod: `getopt `: a module that closely mirrors the procedural C ``getopt `` API.
19- Included in the standard library since before the initial Python 1.0 release.
2019* :mod: `!optparse `: a declarative replacement for ``getopt `` that
2120 provides equivalent functionality without requiring each application
22- to implement its own procedural option parsing logic. Included
23- in the standard library since the Python 2.3 release.
21+ to implement its own procedural option parsing logic.
2422* :mod: `argparse `: a more opinionated alternative to ``optparse `` that
2523 provides more functionality by default, at the expense of reduced application
26- flexibility in controlling exactly how arguments are processed. Included in
27- the standard library since the Python 2.7 and Python 3.2 releases.
24+ flexibility in controlling exactly how arguments are processed.
2825
2926In the absence of more specific argument parsing design constraints, :mod: `argparse `
3027is the recommended choice for implementing command line applications, as it offers
Original file line number Diff line number Diff line change 11"""A powerful, extensible, and easy-to-use option parser.
22
3- By Greg Ward <gward@python.net>
4-
5- Originally distributed as Optik.
6-
7- For support, use the optik-users@lists.sourceforge.net mailing list
8- (http://lists.sourceforge.net/lists/listinfo/optik-users).
9-
103Simple usage example:
114
125 from optparse import OptionParser
You can’t perform that action at this time.
0 commit comments