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
5df4025f
Commit
5df4025f
authored
Jun 02, 2019
by
Tim Hoffmann
Committed by
Pablo Galindo
Jun 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add description to the command line help of the argument clinic (GH-8518)
parent
7ffcf848
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Tools/clinic/clinic.py
Tools/clinic/clinic.py
+8
-1
No files found.
Tools/clinic/clinic.py
View file @
5df4025f
...
...
@@ -4900,7 +4900,14 @@ def main(argv):
sys
.
exit
(
"Error: clinic.py requires Python 3.3 or greater."
)
import
argparse
cmdline
=
argparse
.
ArgumentParser
()
cmdline
=
argparse
.
ArgumentParser
(
description
=
"""Preprocessor for CPython C files.
The purpose of the Argument Clinic is automating all the boilerplate involved
with writing argument parsing code for builtins and providing introspection
signatures ("docstrings") for CPython builtins.
For more information see https://docs.python.org/3/howto/clinic.html"""
)
cmdline
.
add_argument
(
"-f"
,
"--force"
,
action
=
'store_true'
)
cmdline
.
add_argument
(
"-o"
,
"--output"
,
type
=
str
)
cmdline
.
add_argument
(
"-v"
,
"--verbose"
,
action
=
'store_true'
)
...
...
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