diff options
| author | historia <historiavg@proton.me> | 2026-09-11 18:21:38 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-09-11 18:21:38 -0400 |
| commit | 742093b18cd31e9d25c43f475b94c232fc28a5a7 (patch) | |
| tree | 056cc617f2e32cd1d43fcf681728ece4df8af6b2 /lib/project/src | |
| parent | 3eccf822e14f5f4dd1f6b96e785c0217db647c3e (diff) | |
| download | producer-742093b18cd31e9d25c43f475b94c232fc28a5a7.tar.gz | |
feat: config.toml added
Diffstat (limited to 'lib/project/src')
| -rw-r--r-- | lib/project/src/producer/cli.py | 8 |
1 files changed, 8 insertions, 0 deletions
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) |
