Skip to content

Commit 824c681

Browse files
committed
feat(prog-engine): ajouter sélection workspace et mode multi-onglets
1 parent 2acdaa0 commit 824c681

2 files changed

Lines changed: 194 additions & 56 deletions

File tree

OnlyMod/EngineOnlyMod/__main__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ def main():
145145
)
146146
parser.add_argument(
147147
"--prog-engine",
148+
nargs="?",
149+
const="",
148150
metavar="ENGINE_ID",
149-
help="Launch GUI focused on one engine tab only",
151+
help="Launch prog-engine GUI (optional ENGINE_ID, otherwise load all engines)",
150152
)
151153
parser.add_argument(
152154
"-f",
@@ -185,7 +187,10 @@ def main():
185187
# Mode CLI
186188
return run_cli(args)
187189
else:
188-
if args.prog_engine:
190+
if args.prog_engine is not None:
191+
if not args.workspace:
192+
print("Error: --prog-engine requires --workspace <path>")
193+
return 1
189194
return launch_prog_engine_gui(
190195
engine_id=args.prog_engine,
191196
workspace_dir=args.workspace,

0 commit comments

Comments
 (0)