Skip to content

Commit 075a8f7

Browse files
committed
Add back --delay with deprecation comment
1 parent fcf8bb0 commit 075a8f7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

sphinx_autobuild/__main__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,13 @@ def _add_autobuild_arguments(parser):
227227
default=False,
228228
help="open the browser after building documentation",
229229
)
230-
230+
group.add_argument(
231+
"--delay",
232+
type=float,
233+
default=0,
234+
help="how long to wait before opening the browser (deprecated, no effect)",
235+
**({"deprecated": True} if sys.version_info >= (3, 13) else {}),
236+
)
231237
group.add_argument(
232238
"--watch",
233239
action="append",

0 commit comments

Comments
 (0)