diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-01-20 04:55:51 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-01-20 04:55:51 (GMT) |
commit | 1b6e5381c326215fd0529832ec87c7b7056b8677 (patch) | |
tree | 920a9ba59e849f855354b47a188beea4e9bb0108 /Doc | |
parent | c3edc19afcfc3cfa9abafc7823ac7748d8f0ecaf (diff) | |
download | cpython-1b6e5381c326215fd0529832ec87c7b7056b8677.zip cpython-1b6e5381c326215fd0529832ec87c7b7056b8677.tar.gz cpython-1b6e5381c326215fd0529832ec87c7b7056b8677.tar.bz2 |
Issue #22317: Document the action parameter in ArgumentParser.add_subparsers() docs.
Patch by Mike Short.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/argparse.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index cda563d..fd75cfe 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -1499,12 +1499,15 @@ Sub-commands * 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:: |