opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix(run): allow messages to start with dash (-)

Open ucirello opened this issue 1 month ago • 1 comments

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

ucirello avatar Nov 29 '25 18:11 ucirello

@rekram1-node - any suggestions?

ucirello avatar Dec 02 '25 02:12 ucirello