cpython: 79f3ae389dae (original) (raw)
Mercurial > cpython
changeset 69519:79f3ae389dae 2.7
#11904: fix indentation in argparse doc. Noticed by Vladimir Rutsky. [#11904]
Ezio Melotti ezio.melotti@gmail.com | |
---|---|
date | Thu, 21 Apr 2011 23:06:48 +0300 |
parents | e8464256b4d7 |
children | f6ea7abc4eb2 |
files | Doc/library/argparse.rst |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-)[+] [-] Doc/library/argparse.rst 8 |
line wrap: on
line diff
--- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -647,7 +647,7 @@ them, though most actions simply add an command-line args should be handled. The supported actions are:
- action. For example::
parser = argparse.ArgumentParser() parser.add_argument('--foo') @@ -655,9 +655,9 @@ command-line args should be handled. The Namespace(foo='1')
- 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)