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 @@ -1808,7 +1808,8 @@ FileType objects
18081808Argument groups
18091809^^^^^^^^^^^^^^^
18101810
1811- .. method :: ArgumentParser.add_argument_group(title=None, description=None)
1811+ .. method :: ArgumentParser.add_argument_group(title=None, description=None, *, \
1812+ [argument_default], [conflict_handler])
18121813
18131814 By default, :class: `ArgumentParser ` groups command-line arguments into
18141815 "positional arguments" and "options" when displaying help
@@ -1853,6 +1854,11 @@ Argument groups
18531854
18541855 --bar BAR bar help
18551856
1857+ The optional, keyword-only parameters argument_default _ and conflict_handler _
1858+ allow for finer-grained control of the behavior of the argument group. These
1859+ parameters have the same meaning as in the :class: `ArgumentParser ` constructor,
1860+ but apply specifically to the argument group rather than the entire parser.
1861+
18561862 Note that any arguments not in your user-defined groups will end up back
18571863 in the usual "positional arguments" and "optional arguments" sections.
18581864
You can’t perform that action at this time.
0 commit comments