[PR #4904] fix(run): allow messages to start with dash (-) #11166

Closed
opened 2026-02-16 18:15:57 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4904

State: closed
Merged: Yes


This PR adds the Unix -- idiom to allow positional arguments that start with leading dashes.

Examples

opencode run "-hello" # fails because it thinks that hello is flag
opencode run -- "-hello" # now works, but this PR allow the same logic applied by other Unix CLI tools

Closes https://github.com/sst/opencode/issues/4903

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4904 **State:** closed **Merged:** Yes --- This PR adds the Unix `--` idiom to allow positional arguments that start with leading dashes. Examples ``` opencode run "-hello" # fails because it thinks that hello is flag opencode run -- "-hello" # now works, but this PR allow the same logic applied by other Unix CLI tools ``` Closes https://github.com/sst/opencode/issues/4903
yindo added the pull-request label 2026-02-16 18:15:57 -05:00
yindo closed this issue 2026-02-16 18:15:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11166