From 742093b18cd31e9d25c43f475b94c232fc28a5a7 Mon Sep 17 00:00:00 2001 From: historia Date: Fri, 11 Sep 2026 18:21:38 -0400 Subject: feat: config.toml added --- lib/project/src/producer/cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/project/src') diff --git a/lib/project/src/producer/cli.py b/lib/project/src/producer/cli.py index 4788fb5..374455a 100644 --- a/lib/project/src/producer/cli.py +++ b/lib/project/src/producer/cli.py @@ -80,7 +80,15 @@ def require_input(source: Path) -> None: raise ValueError(f"Input must be an existing WAV file: {source}") +# The 'process' keyword is optional: any first argument that is not a known +# command (or a global option) is treated as the start of a process run. +COMMANDS = ("process", "preview", "config", "doctor", "setup") +GLOBAL_OPTIONS = ("-h", "--help", "--version") + + def main(): + if len(sys.argv) > 1 and sys.argv[1] not in COMMANDS and sys.argv[1] not in GLOBAL_OPTIONS: + sys.argv.insert(1, "process") app = parser() args = app.parse_args() console = Console(stderr=True) -- cgit v1.2.3