fix: allow dash-prefixed arguments in CLI run command

This commit is contained in:
YeonGyu-Kim
2026-02-07 18:46:40 +09:00
parent db6a899297
commit d5b6a7c575

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)