summaryrefslogtreecommitdiffstats
path: root/Doc/library/argparse.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-09-14 03:35:09 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-09-14 03:35:09 (GMT)
commit8429b6784bd7447055c7880e1b84954cd27bd0a3 (patch)
tree9a95f710bda3ba07be9ac91d89007f5b70e9c6fc /Doc/library/argparse.rst
parentc2085dd765d3fcb46e1e8ee7e908bae8637827e9 (diff)
parente0add764688a3f3237749e0c2830b669d2c76ca0 (diff)
downloadcpython-8429b6784bd7447055c7880e1b84954cd27bd0a3.zip
cpython-8429b6784bd7447055c7880e1b84954cd27bd0a3.tar.gz
cpython-8429b6784bd7447055c7880e1b84954cd27bd0a3.tar.bz2
#15831: merge with 3.2
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r--Doc/library/argparse.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 4203e8b..8987622 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -130,9 +130,12 @@ command-line arguments from :data:`sys.argv`.
ArgumentParser objects
----------------------
-.. class:: ArgumentParser([description], [epilog], [prog], [usage], [add_help], \
- [argument_default], [parents], [prefix_chars], \
- [conflict_handler], [formatter_class])
+.. class:: ArgumentParser(prog=None, usage=None, description=None, \
+ epilog=None, parents=[], \
+ formatter_class=argparse.HelpFormatter, \
+ prefix_chars='-', fromfile_prefix_chars=None, \
+ argument_default=None, conflict_handler='error', \
+ add_help=True)
Create a new :class:`ArgumentParser` object. Each parameter has its own more
detailed description below, but in short they are: