Skip to content

Show application help when no command is provided and default command is present - #3

Open
sproott wants to merge 1 commit into
FeatherTools:mainfrom
sproott:fix/application-help
Open

Show application help when no command is provided and default command is present#3
sproott wants to merge 1 commit into
FeatherTools:mainfrom
sproott:fix/application-help

Conversation

@sproott

@sproott sproott commented Aug 13, 2026

Copy link
Copy Markdown

When defaultCommand is specified for the app and it's called with --help like ./program --help, the help was printed for that default command, instead of the application-level help. This PR fixes it by not injecting the default command in the internal arg list when --help or --version options are passed.

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.

1 participant