Skip to content

feat: support "help" as a subcommand synonymous with "--help" #868#878

Open
dhruveshmishra wants to merge 1 commit intolinode:devfrom
dhruveshmishra:support
Open

feat: support "help" as a subcommand synonymous with "--help" #868#878
dhruveshmishra wants to merge 1 commit intolinode:devfrom
dhruveshmishra:support

Conversation

@dhruveshmishra
Copy link
Copy Markdown

Added support for using help as a subcommand in the CLI.

Closes #868

What this does
Now the following commands work:

linode-cli instance help
linode-cli help instance

Both behave the same as using --help.

Why
While using different CLIs, I often find myself typing help as a subcommand instead of --help. Many tools like git and aws support this pattern, so adding it here makes the CLI a bit more intuitive and user-friendly.

Implementation
This is handled by checking for help in the arguments early and mapping it to --help. The change is minimal and doesn’t affect existing functionality.

Notes
If there’s a preferred way to handle this at the parser level instead of rewriting argv, I’m happy to update the implementation.

@dhruveshmishra dhruveshmishra requested review from a team as code owners April 4, 2026 06:40
@dhruveshmishra dhruveshmishra requested review from mawilk90 and mgwoj and removed request for a team April 4, 2026 06:40
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.

[Feature]: support "help" as a subcommand synonymous with "--help"

1 participant