[Python-checkins] cpython (merge 3.2 -> default): #11904-#11905: Merge typo fixes with 3.2.
ezio.melotti
python-checkins at python.org
Thu Apr 21 22:13:47 CEST 2011
http://hg.python.org/cpython/rev/8568762381b4
changeset: 69523:8568762381b4
parent: 69518:56825d54dc84
parent: 69522:15f482996880
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Thu Apr 21 23:12:53 2011 +0300
summary:
#11904-#11905: Merge typo fixes with 3.2.
files:
Doc/library/argparse.rst | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -598,7 +598,7 @@
has its own more detailed description below, but in short they are:
* `name or flags`_ - Either a name or a list of option strings, e.g. ``foo``
- or ``-f, --foo``
+ or ``-f, --foo``.
* action_ - The basic type of action to be taken when this argument is
encountered at the command line.
@@ -667,7 +667,7 @@
command-line args should be handled. The supported actions are:
* ``'store'`` - This just stores the argument's value. This is the default
- action. For example::
+ action. For example::
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--foo')
@@ -675,9 +675,9 @@
Namespace(foo='1')
* ``'store_const'`` - This stores the value specified by the const_ keyword
- argument. (Note that the const_ keyword argument defaults to the rather
- unhelpful ``None``.) The ``'store_const'`` action is most commonly used with
- optional arguments that specify some sort of flag. For example::
+ argument. (Note that the const_ keyword argument defaults to the rather
+ unhelpful ``None``.) The ``'store_const'`` action is most commonly used with
+ optional arguments that specify some sort of flag. For example::
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--foo', action='store_const', const=42)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list