opencode
opencode copied to clipboard
fix(run): allow messages to start with dash (-)
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
@rekram1-node - any suggestions?