summaryrefslogtreecommitdiffstats
path: root/Doc/library/argparse.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-06 10:26:05 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-06 10:26:05 (GMT)
commit682d7e0e07bc29de4578f48be66756c5b969776f (patch)
tree4e1c379e13ebca676c4fbee38ed251ecc88c1133 /Doc/library/argparse.rst
parentfa4f7f97b8af16c02441443e448986c07f4cd254 (diff)
downloadcpython-682d7e0e07bc29de4578f48be66756c5b969776f.zip
cpython-682d7e0e07bc29de4578f48be66756c5b969776f.tar.gz
cpython-682d7e0e07bc29de4578f48be66756c5b969776f.tar.bz2
Fix errors found by "make suspicious".
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r--Doc/library/argparse.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index a30a8c4..f50492a 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -737,14 +737,14 @@ values are:
* N (an integer). N args from the command-line will be gathered together into a
list. For example::
- >>> parser = argparse.ArgumentParser()
- >>> parser.add_argument('--foo', nargs=2)
- >>> parser.add_argument('bar', nargs=1)
- >>> parser.parse_args('c --foo a b'.split())
- Namespace(bar=['c'], foo=['a', 'b'])
+ >>> parser = argparse.ArgumentParser()
+ >>> parser.add_argument('--foo', nargs=2)
+ >>> parser.add_argument('bar', nargs=1)
+ >>> parser.parse_args('c --foo a b'.split())
+ Namespace(bar=['c'], foo=['a', 'b'])
- Note that ``nargs=1`` produces a list of one item. This is different from
- the default, in which the item is produced by itself.
+ Note that ``nargs=1`` produces a list of one item. This is different from
+ the default, in which the item is produced by itself.
* ``'?'``. One arg will be consumed from the command-line if possible, and
produced as a single item. If no command-line arg is present, the value from