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
0f4a4d4a
Commit
0f4a4d4a
authored
Apr 21, 2011
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The \ is not supported in Sphinx 0.6.
parent
5671aacc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
Doc/library/argparse.rst
Doc/library/argparse.rst
+2
-6
No files found.
Doc/library/argparse.rst
View file @
0f4a4d4a
...
@@ -120,9 +120,7 @@ command-line args from :data:`sys.argv`.
...
@@ -120,9 +120,7 @@ command-line args from :data:`sys.argv`.
ArgumentParser objects
ArgumentParser objects
----------------------
----------------------
.. class:: ArgumentParser([description], [epilog], [prog], [usage], [add_help], \
.. class:: ArgumentParser([description], [epilog], [prog], [usage], [add_help], [argument_default], [parents], [prefix_chars], [conflict_handler], [formatter_class])
[argument_default], [parents], [prefix_chars], \
[conflict_handler], [formatter_class])
Create a new :class:`ArgumentParser` object. Each parameter has its own more
Create a new :class:`ArgumentParser` object. Each parameter has its own more
detailed description below, but in short they are:
detailed description below, but in short they are:
...
@@ -570,9 +568,7 @@ your usage messages.
...
@@ -570,9 +568,7 @@ your usage messages.
The add_argument() method
The add_argument() method
-------------------------
-------------------------
.. method:: ArgumentParser.add_argument(name or flags..., [action], [nargs], \
.. method:: ArgumentParser.add_argument(name or flags..., [action], [nargs], [const], [default], [type], [choices], [required], [help], [metavar], [dest])
[const], [default], [type], [choices], [required], \
[help], [metavar], [dest])
Define how a single command-line argument should be parsed. Each parameter
Define how a single command-line argument should be parsed. Each parameter
has its own more detailed description below, but in short they are:
has its own more detailed description below, but in short they are:
...
...
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