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

@@ -65,6 +65,8 @@ Model Providers (Priority: Native > Copilot > OpenCode Zen > Z.ai > Kimi):
program
.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")