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 @@ -1785,7 +1785,8 @@ FileType objects
1785
1785
Argument groups
1786
1786
^^^^^^^^^^^^^^^
1787
1787
1788
- .. method :: ArgumentParser.add_argument_group(title=None, description=None)
1788
+ .. method :: ArgumentParser.add_argument_group(title=None, description=None, *, \
1789
+ [argument_default], [conflict_handler])
1789
1790
1790
1791
By default, :class: `ArgumentParser ` groups command-line arguments into
1791
1792
"positional arguments" and "options" when displaying help
@@ -1830,6 +1831,11 @@ Argument groups
1830
1831
1831
1832
--bar BAR bar help
1832
1833
1834
+ The optional, keyword-only parameters argument_default _ and conflict_handler _
1835
+ allow for finer-grained control of the behavior of the argument group. These
1836
+ parameters have the same meaning as in the :class: `ArgumentParser ` constructor,
1837
+ but apply specifically to the argument group rather than the entire parser.
1838
+
1833
1839
Note that any arguments not in your user-defined groups will end up back
1834
1840
in the usual "positional arguments" and "optional arguments" sections.
1835
1841
You can’t perform that action at this time.
0 commit comments