summaryrefslogtreecommitdiff
path: root/doc/source/add_argument.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/add_argument.rst')
-rw-r--r--doc/source/add_argument.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/source/add_argument.rst b/doc/source/add_argument.rst
index 43e1b29..8d6b35c 100644
--- a/doc/source/add_argument.rst
+++ b/doc/source/add_argument.rst
@@ -22,7 +22,7 @@ The add_argument() method
name or flags
-------------
-The :meth:`add_argument` method needs to know whether you're expecting an optional argument, e.g. ``-f`` or ``--foo`, or a positional argument, e.g. a list of filenames. The first arguments passed to :meth:`add_argument` must therefore be either a series of flags, or a simple argument name. For example, an optional argument could be created like::
+The :meth:`add_argument` method needs to know whether you're expecting an optional argument, e.g. ``-f`` or ``--foo``, or a positional argument, e.g. a list of filenames. The first arguments passed to :meth:`add_argument` must therefore be either a series of flags, or a simple argument name. For example, an optional argument could be created like::
>>> parser.add_argument('-f', '--foo')