From e25b8ec7aca1e15f097e3cd18e6c5ef164a9663b Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Tue, 3 Sep 2024 02:16:41 -0500 Subject: [PATCH] Add support for sphinx-build -M ('make mode') (#173) --- sphinx_autobuild/__main__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sphinx_autobuild/__main__.py b/sphinx_autobuild/__main__.py index 63a01be..4b2e960 100644 --- a/sphinx_autobuild/__main__.py +++ b/sphinx_autobuild/__main__.py @@ -125,6 +125,11 @@ def _get_sphinx_build_parser(): # 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