File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1740,7 +1740,8 @@ FileType objects
1740
1740
Argument groups
1741
1741
^^^^^^^^^^^^^^^
1742
1742
1743
- .. method :: ArgumentParser.add_argument_group(title=None, description=None)
1743
+ .. method :: ArgumentParser.add_argument_group(title=None, description=None, *, \
1744
+ [argument_default], [conflict_handler])
1744
1745
1745
1746
By default, :class: `ArgumentParser ` groups command-line arguments into
1746
1747
"positional arguments" and "options" when displaying help
@@ -1785,6 +1786,11 @@ Argument groups
1785
1786
1786
1787
--bar BAR bar help
1787
1788
1789
+ The optional, keyword-only parameters argument_default _ and conflict_handler _
1790
+ allow for finer-grained control of the behavior of the argument group. These
1791
+ parameters have the same meaning as in the :class: `ArgumentParser ` constructor,
1792
+ but apply specifically to the argument group rather than the entire parser.
1793
+
1788
1794
Note that any arguments not in your user-defined groups will end up back
1789
1795
in the usual "positional arguments" and "optional arguments" sections.
1790
1796
You can’t perform that action at this time.
0 commit comments