diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-04-21 23:06:48 +0300 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-04-21 23:06:48 +0300 |
commit | 310619c80f3762d7f42812303920acfbe45cef86 (patch) | |
tree | 01e2284849bb97af4c80a38d754f395b9151e678 | |
parent | 0a43ecc9df8f4acd200ef4ed6288a442ea5afe4e (diff) | |
download | cpython-git-310619c80f3762d7f42812303920acfbe45cef86.tar.gz |
#11904: fix indentation in argparse doc. Noticed by Vladimir Rutsky.
-rw-r--r-- | Doc/library/argparse.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 56cb189ca8..cecd47271e 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -647,7 +647,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') @@ -655,9 +655,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) |