From 6c8e9ccd891b1b12a296026c2d9d756ff7f29cd3 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Thu, 19 May 2022 20:04:29 +0200 Subject: [PATCH] Migrated StartService to new argument parsing --- src/cpl_cli/live_server/live_server_thread.py | 1 + src/cpl_cli/startup_argument_extension.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpl_cli/live_server/live_server_thread.py b/src/cpl_cli/live_server/live_server_thread.py index ed91165d..308b7f7c 100644 --- a/src/cpl_cli/live_server/live_server_thread.py +++ b/src/cpl_cli/live_server/live_server_thread.py @@ -66,6 +66,7 @@ class LiveServerThread(threading.Thread): main = self._build_settings.main.split('.')[length] self._main = os.path.join(self._path, f'{main}.py') + Console.write_line(self._main) if not os.path.isfile(self._main): Console.error('Entry point main.py not found') return diff --git a/src/cpl_cli/startup_argument_extension.py b/src/cpl_cli/startup_argument_extension.py index 58ac8358..731861ef 100644 --- a/src/cpl_cli/startup_argument_extension.py +++ b/src/cpl_cli/startup_argument_extension.py @@ -78,7 +78,7 @@ class StartupArgumentExtension(StartupExtensionABC): config.create_console_argument(ArgumentTypeEnum.Executable, '', 'publish', ['p', 'P'], PublishService) config.create_console_argument(ArgumentTypeEnum.Executable, '', 'remove', ['r', 'R'], RemoveService) \ .add_console_argument(ArgumentTypeEnum.Flag, '--', 'simulate', ['s', 'S']) - config.create_console_argument(ArgumentTypeEnum.Executable, '', 'start', ['S', 'S'], StartService) + config.create_console_argument(ArgumentTypeEnum.Executable, '', 'start', ['s', 'S'], StartService) config.create_console_argument(ArgumentTypeEnum.Executable, '', 'uninstall', ['ui', 'UI'], UninstallService) \ .add_console_argument(ArgumentTypeEnum.Flag, '--', 'virtual', ['v', 'V']) \ .add_console_argument(ArgumentTypeEnum.Flag, '--', 'simulate', ['s', 'S'])