File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Filter options
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
1808
1808
Argument groups
1809
1809
^^^^^^^^^^^^^^^
1810
1810
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])
1812
1813
1813
1814
By default, :class: `ArgumentParser ` groups command-line arguments into
1814
1815
"positional arguments" and "options" when displaying help
@@ -1853,6 +1854,11 @@ Argument groups
1853
1854
1854
1855
--bar BAR bar help
1855
1856
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
+
1856
1862
Note that any arguments not in your user-defined groups will end up back
1857
1863
in the usual "positional arguments" and "optional arguments" sections.
1858
1864
You can’t perform that action at this time.
0 commit comments