Skip to content

Commit

Permalink
Merge pull request #16170 from AUTOMATIC1111/shlex.quote-launch-args-…
Browse files Browse the repository at this point in the history
…in-console-log

shlex.join launch args in console log
  • Loading branch information
AUTOMATIC1111 committed Jul 8, 2024
1 parent 6ca7a45 commit 48dd4d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/launch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import importlib.metadata
import platform
import json
import shlex
from functools import lru_cache

from modules import cmd_args, errors
Expand Down Expand Up @@ -461,7 +462,7 @@ def configure_for_tests():


def start():
print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {' '.join(sys.argv[1:])}")
print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {shlex.join(sys.argv[1:])}")
import webui
if '--nowebui' in sys.argv:
webui.api_only()
Expand Down

0 comments on commit 48dd4d9

Please sign in to comment.