]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #22317: Document the action parameter in ArgumentParser.add_subparsers() docs.
authorBerker Peksag <berker.peksag@gmail.com>
Tue, 20 Jan 2015 04:45:53 +0000 (06:45 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Tue, 20 Jan 2015 04:45:53 +0000 (06:45 +0200)
Patch by Mike Short.

Doc/library/argparse.rst

index 3260667647a3e239d36af694c0f07748c021149c..73f94808b659b59a2d8de725cdfcc37d482410e6 100644 (file)
@@ -1521,12 +1521,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::