Skip to content

Commit 48dd4d9

Browse files
committed
Merge pull request AUTOMATIC1111#16170 from AUTOMATIC1111/shlex.quote-launch-args-in-console-log
shlex.join launch args in console log
1 parent 6ca7a45 commit 48dd4d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/launch_utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import importlib.metadata
1010
import platform
1111
import json
12+
import shlex
1213
from functools import lru_cache
1314

1415
from modules import cmd_args, errors
@@ -461,7 +462,7 @@ def configure_for_tests():
461462

462463

463464
def start():
464-
print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {' '.join(sys.argv[1:])}")
465+
print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {shlex.join(sys.argv[1:])}")
465466
import webui
466467
if '--nowebui' in sys.argv:
467468
webui.api_only()

0 commit comments

Comments
 (0)