Skip to content

Conversation

@ucirello
Copy link
Contributor

@ucirello ucirello commented Nov 29, 2025

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 #4903

@ucirello ucirello marked this pull request as draft November 29, 2025 18:20
@ucirello ucirello force-pushed the ucirello/dash-parameters branch from 7e3320a to 18b95eb Compare November 29, 2025 18:25
@ucirello ucirello marked this pull request as ready for review November 29, 2025 18:25
@ucirello
Copy link
Contributor Author

ucirello commented Dec 2, 2025

@rekram1-node - any suggestions?

@rekram1-node rekram1-node merged commit 6ce1de4 into sst:dev Dec 2, 2025
3 checks passed
spmurrayzzz pushed a commit to spmurrayzzz/opencode that referenced this pull request Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot use messages starting with - with opencode run

2 participants