Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ffde3cfc
Commit
ffde3cfc
authored
Sep 08, 2008
by
Mark Summerfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added xrefs to each other.
parent
3f5fda8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Doc/library/getopt.rst
Doc/library/getopt.rst
+6
-1
Doc/library/optparse.rst
Doc/library/optparse.rst
+1
-1
No files found.
Doc/library/getopt.rst
View file @
ffde3cfc
...
...
@@ -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:
...
...
Doc/library/optparse.rst
View file @
ffde3cfc
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment