Merge pull request #1601 from code-yeongyu/fix/899-cli-run-dash-args

fix: allow dash-prefixed arguments in CLI run command (#899)
This commit is contained in:
YeonGyu-Kim
2026-02-07 18:49:26 +09:00
committed by GitHub

View File

@@ -64,8 +64,10 @@ Model Providers (Priority: Native > Copilot > OpenCode Zen > Z.ai > Kimi):
})
program
.command("run <message>")
.description("Run opencode with todo/background task completion enforcement")
.command("run <message>")
.allowUnknownOption()
.passThroughOptions()
.description("Run opencode with todo/background task completion enforcement")
.option("-a, --agent <name>", "Agent to use (default: from CLI/env/config, fallback: Sisyphus)")
.option("-d, --directory <path>", "Working directory")
.option("-t, --timeout <ms>", "Timeout in milliseconds (default: 30 minutes)", parseInt)