From d5b6a7c575ee699b8bc67b89e46450e116084be1 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 7 Feb 2026 18:46:40 +0900 Subject: [PATCH] fix: allow dash-prefixed arguments in CLI run command --- src/cli/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cli/index.ts b/src/cli/index.ts index 4c9eac70..4db8791b 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -64,8 +64,10 @@ Model Providers (Priority: Native > Copilot > OpenCode Zen > Z.ai > Kimi): }) program - .command("run ") - .description("Run opencode with todo/background task completion enforcement") + .command("run ") + .allowUnknownOption() + .passThroughOptions() + .description("Run opencode with todo/background task completion enforcement") .option("-a, --agent ", "Agent to use (default: from CLI/env/config, fallback: Sisyphus)") .option("-d, --directory ", "Working directory") .option("-t, --timeout ", "Timeout in milliseconds (default: 30 minutes)", parseInt)