[Python-checkins] cpython (2.7): Issue #22317: Document the action parameter in ArgumentParser.add_subparsers()

berker.peksag python-checkins at python.org
Tue Jan 20 05:55:46 CET 2015


https://hg.python.org/cpython/rev/430236ef507b
changeset: 94222:430236ef507b
branch: 2.7
parent: 94211:6e03c18f5447
user: Berker Peksag <berker.peksag at gmail.com>
date: Tue Jan 20 06:55:51 2015 +0200
summary:
 Issue #22317: Document the action parameter in ArgumentParser.add_subparsers() docs.
Patch by Mike Short.
files:
 Doc/library/argparse.rst | 9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1499,12 +1499,15 @@
 * parser_class - class which will be used to create sub-parser instances, by
 default the class of the current parser (e.g. ArgumentParser)
 
- * dest - name of the attribute under which sub-command name will be
+ * action_ - the basic type of action to be taken when this argument is
+ encountered at the command line
+
+ * dest_ - name of the attribute under which sub-command name will be
 stored; by default None and no value is stored
 
- * help - help for sub-parser group in help output, by default None
+ * help_ - help for sub-parser group in help output, by default None
 
- * metavar - string presenting available sub-commands in help; by default it
+ * metavar_ - string presenting available sub-commands in help; by default it
 is None and presents sub-commands in form {cmd1, cmd2, ..}
 
 Some example usage::
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /