mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Fix a few more hyphens in argparse.rst
This commit is contained in:
parent
f25a8de845
commit
2409d770d9
1 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
===============================================================================
|
===============================================================================
|
||||||
|
|
||||||
.. module:: argparse
|
.. module:: argparse
|
||||||
:synopsis: Command-line option and argument parsing library.
|
:synopsis: Command-line option and argument-parsing library.
|
||||||
.. moduleauthor:: Steven Bethard <steven.bethard@gmail.com>
|
.. moduleauthor:: Steven Bethard <steven.bethard@gmail.com>
|
||||||
.. sectionauthor:: Steven Bethard <steven.bethard@gmail.com>
|
.. sectionauthor:: Steven Bethard <steven.bethard@gmail.com>
|
||||||
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
The :mod:`argparse` module makes it easy to write user friendly command line
|
The :mod:`argparse` module makes it easy to write user-friendly command-line
|
||||||
interfaces. The program defines what arguments it requires, and :mod:`argparse`
|
interfaces. The program defines what arguments it requires, and :mod:`argparse`
|
||||||
will figure out how to parse those out of :data:`sys.argv`. The :mod:`argparse`
|
will figure out how to parse those out of :data:`sys.argv`. The :mod:`argparse`
|
||||||
module also automatically generates help and usage messages and issues errors
|
module also automatically generates help and usage messages and issues errors
|
||||||
|
|
@ -594,7 +594,7 @@ The add_argument() method
|
||||||
* default_ - The value produced if the argument is absent from the
|
* default_ - The value produced if the argument is absent from the
|
||||||
command line.
|
command line.
|
||||||
|
|
||||||
* type_ - The type to which the command-line arg should be converted.
|
* type_ - The type to which the command-line argument should be converted.
|
||||||
|
|
||||||
* choices_ - A container of the allowable values for the argument.
|
* choices_ - A container of the allowable values for the argument.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue