Skip to content

Make -h output usage info directly in CLI instead of launching TUI #1594

@PeterDaveHello

Description

@PeterDaveHello

--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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions