Skip to content

Commit

Permalink
Suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Sep 3, 2024
1 parent 95eeb8d commit e891f10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sphinx_autobuild/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,16 @@ def _get_sphinx_build_parser():
sphinx_build_parser.description = None
sphinx_build_parser.epilog = None
sphinx_build_parser.prog = "sphinx-autobuild"
sphinx_build_parser.add_argument("-M", dest="use_make_mode")
for action in sphinx_build_parser._actions:
if hasattr(action, "version"):
# Fix the version
action.version = f"%(prog)s {__version__}"
break
sphinx_build_parser.add_argument(
"-M",
dest="use_make_mode",
help=argparse.SUPPRESS,
)
_add_autobuild_arguments(sphinx_build_parser)

return sphinx_build_parser
Expand Down

0 comments on commit e891f10

Please sign in to comment.