Skip to content

Commit e1ac89a

Browse files
committed
fix(run): allow messages to start with dash (-)
1 parent 2c4d1fb commit e1ac89a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/opencode/src/cli/cmd/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const RunCommand = cmd({
8888
})
8989
},
9090
handler: async (args) => {
91-
let message = args.message.join(" ")
91+
let message = [...args.message, ...((args as any)["--"] || [])].join(" ")
9292

9393
const fileParts: any[] = []
9494
if (args.file) {

packages/opencode/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ process.on("uncaughtException", (e) => {
3939
})
4040

4141
const cli = yargs(hideBin(process.argv))
42+
.parserConfiguration({ "populate--": true })
4243
.scriptName("opencode")
4344
.help("help", "show help")
4445
.alias("help", "h")

0 commit comments

Comments
 (0)