mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
#11885: capitalize Python.
This commit is contained in:
parent
c17c1f64aa
commit
cca4ef8cba
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ The first step in using the :mod:`argparse` is creating an
|
||||||
>>> parser = argparse.ArgumentParser(description='Process some integers.')
|
>>> parser = argparse.ArgumentParser(description='Process some integers.')
|
||||||
|
|
||||||
The :class:`ArgumentParser` object will hold all the information necessary to
|
The :class:`ArgumentParser` object will hold all the information necessary to
|
||||||
parse the command line into python data types.
|
parse the command line into Python data types.
|
||||||
|
|
||||||
|
|
||||||
Adding arguments
|
Adding arguments
|
||||||
|
@ -1797,7 +1797,7 @@ A partial upgrade path from optparse to argparse:
|
||||||
:exc:`ArgumentError`.
|
:exc:`ArgumentError`.
|
||||||
|
|
||||||
* Replace strings with implicit arguments such as ``%default`` or ``%prog`` with
|
* Replace strings with implicit arguments such as ``%default`` or ``%prog`` with
|
||||||
the standard python syntax to use dictionaries to format strings, that is,
|
the standard Python syntax to use dictionaries to format strings, that is,
|
||||||
``%(default)s`` and ``%(prog)s``.
|
``%(default)s`` and ``%(prog)s``.
|
||||||
|
|
||||||
* Replace the OptionParser constructor ``version`` argument with a call to
|
* Replace the OptionParser constructor ``version`` argument with a call to
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue