From 8a567c5982d5c495b5c5a8a796bd1ab85722b2ad Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 30 May 2024 11:57:41 +0200 Subject: [PATCH] [fix] issue from PR #160 - scripts do miss arguments `sys.argv[1:]` To reproduce the issue read comment [1]. [1] https://github.com/sphinx-doc/sphinx-autobuild/pull/160/files#r1620387971 Closes: https://github.com/sphinx-doc/sphinx-autobuild/issues/162 Signed-off-by: Markus Heiser --- sphinx_autobuild/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_autobuild/__main__.py b/sphinx_autobuild/__main__.py index c63ddae..6cdb3a2 100644 --- a/sphinx_autobuild/__main__.py +++ b/sphinx_autobuild/__main__.py @@ -27,7 +27,7 @@ def main(argv=()): """Actual application logic.""" colorama.init() - args, build_args = _parse_args(list(argv)) + args, build_args = _parse_args(list(argv) or sys.argv[1:]) src_dir = args.sourcedir out_dir = args.outdir