@@ -1558,7 +1558,7 @@ def setup_parser():
1558
1558
1559
1559
# Standard options. Note: We use explicit option.dest names
1560
1560
# to avoid ambiguity.
1561
- standard = argparse . OptionGroup ( parser , "Standard" )
1561
+ standard = parser . add_argument_group ( "Standard" )
1562
1562
standard .add_argument ("-h" , "--help" ,
1563
1563
action = help_message_short ,
1564
1564
help = "show a help message and exit" )
@@ -1617,11 +1617,10 @@ def setup_parser():
1617
1617
standard .add_argument ("-o" , "--output" , dest = "output_dir" , default = None ,
1618
1618
metavar = "DIR" , action = "store" ,
1619
1619
help = "if DOCUMENT is a single file ('file=...'), write output to this directory" )
1620
- parser .add_argument_group (standard )
1621
1620
1622
1621
# Advanced options.
1623
- advanced = argparse . OptionGroup ( parser , "Advanced" ,
1624
- "Use these options with care." )
1622
+ advanced = parser . add_argument_group ( "Advanced" ,
1623
+ "Use these options with care." )
1625
1624
advanced .add_argument ("-S" , "--sphinx-opts" , dest = "sphinx_opts" ,
1626
1625
type = "string" , metavar = "OPTS" ,
1627
1626
action = "store" ,
@@ -1638,7 +1637,6 @@ def setup_parser():
1638
1637
help = "if ARG is 'reference', list all subdocuments"
1639
1638
" of en/reference. If ARG is 'all', list all main"
1640
1639
" documents" )
1641
- parser .add_argument_group (advanced )
1642
1640
return parser
1643
1641
1644
1642
0 commit comments