summaryrefslogtreecommitdiffhomepage
path: root/packages/opencode/src/cli/cmd/cmd.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/opencode/src/cli/cmd/cmd.ts')
-rw-r--r--packages/opencode/src/cli/cmd/cmd.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/cmd.ts b/packages/opencode/src/cli/cmd/cmd.ts
index ee6da7b45..fe6d62d7b 100644
--- a/packages/opencode/src/cli/cmd/cmd.ts
+++ b/packages/opencode/src/cli/cmd/cmd.ts
@@ -1,5 +1,7 @@
import type { CommandModule } from "yargs"
-export function cmd<T, U>(input: CommandModule<T, U>) {
+type WithDoubleDash<T> = T & { "--"?: string[] }
+
+export function cmd<T, U>(input: CommandModule<T, WithDoubleDash<U>>) {
return input
}