Skip to content

Commit

Permalink
shlex.quote launch args in console log
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Jul 8, 2024
1 parent bad47dc commit a8b0f3b
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: {' '.join([shlex.quote(arg) for arg in sys.argv[1:]])}")
import webui
if '--nowebui' in sys.argv:
webui.api_only()
Expand Down

0 comments on commit a8b0f3b

Please sign in to comment.