You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--help already outputs the usage info correctly. The issue is that running opencode -h currently launches the TUI instead of printing help and usage information directly in the terminal, which is inconsistent with common CLI conventions.
Suggested improvements:
opencode -h should print usage and help text directly to the terminal, similar to how --version and --help work.
The output should include a summary of available flags, commands, and a brief description of the tool.
Updating this behavior would make OpenCode easier to use and more in line with what people expect from CLI tools. If this proposal is acceptable, I am happy to contribute a patch for this enhancement.