fix(cli): add explicit helpOption configuration for consistent help-flag ordering

Add explicit .helpOption('-h, --help') call to the Commander program configuration so the help option is explicitly defined rather than relying on Commander.js lazy initialization. Add corresponding test to pin the behavior.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-25 11:00:37 +09:00
parent 222adeb606
commit ce4b11b0d3
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@ program
.name("oh-my-opencode")
.description("The ultimate OpenCode plugin - multi-model orchestration, LSP tools, and more")
.version(VERSION, "-v, --version", "Show version number")
.helpOption("-h, --help", "Display help for command")
.enablePositionalOptions()
program