summaryrefslogtreecommitdiffstats
path: root/Doc/library/argparse.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-04-21 20:12:53 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-04-21 20:12:53 (GMT)
commit7817e3b151b7391138c02b4a04996b474b4114ba (patch)
treeb914a92738fa801459245fedf6821735448c3ec0 /Doc/library/argparse.rst
parentccb054759a05ff6ce28f084144d970c99969b446 (diff)
parentdca309d1379f3bb64fd98bfcfbd3933729aae49e (diff)
downloadcpython-7817e3b151b7391138c02b4a04996b474b4114ba.zip
cpython-7817e3b151b7391138c02b4a04996b474b4114ba.tar.gz
cpython-7817e3b151b7391138c02b4a04996b474b4114ba.tar.bz2
#11904-#11905: Merge typo fixes with 3.2.
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r--Doc/library/argparse.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 51c8571..25f8fa18 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -598,7 +598,7 @@ The add_argument() method
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 @@ them, though most actions simply add an attribute to the object returned by
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 @@ command-line args should be handled. The supported actions are:
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)