diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-27 07:07:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 07:07:55 (GMT) |
commit | 5f3e371e2d837d4a06eaee43fbfdf589aca2fc0f (patch) | |
tree | 2bb07474bba1195da768f44ffb434b2de9747f00 /Tools | |
parent | 36e96baa33cb5aa6cb03a1555017dd66f4244183 (diff) | |
download | cpython-5f3e371e2d837d4a06eaee43fbfdf589aca2fc0f.zip cpython-5f3e371e2d837d4a06eaee43fbfdf589aca2fc0f.tar.gz cpython-5f3e371e2d837d4a06eaee43fbfdf589aca2fc0f.tar.bz2 |
[3.12] Docs: Argument Clinic: Restructure "Basic concepts and usage" (GH-106981) (#107325)
Split "Basic concepts and usage" into:
- Reference
- Terminology
- CLI reference
- Background
- Basic concepts
(cherry picked from commit 2ad699002e3ce09e9fa41e333ac72f16a32d94de)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/clinic/clinic.py | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 3e60328..e775b01 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -5431,15 +5431,21 @@ 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') - cmdline.add_argument("--converters", action='store_true') + cmdline.add_argument("-f", "--force", action='store_true', + help="force output regeneration") + cmdline.add_argument("-o", "--output", type=str, + help="redirect file output to OUTPUT") + cmdline.add_argument("-v", "--verbose", action='store_true', + help="enable verbose mode") + cmdline.add_argument("--converters", action='store_true', + help=("print a list of all supported converters " + "and return converters")) cmdline.add_argument("--make", action='store_true', - help="Walk --srcdir to run over all relevant files.") + help="walk --srcdir to run over all relevant files") cmdline.add_argument("--srcdir", type=str, default=os.curdir, - help="The directory tree to walk in --make mode.") - cmdline.add_argument("filename", type=str, nargs="*") + help="the directory tree to walk in --make mode") + cmdline.add_argument("filename", metavar="FILE", type=str, nargs="*", + help="the list of files to process") ns = cmdline.parse_args(argv) if ns.converters: |