Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show help as default command #154

Open
Dadoum opened this issue Dec 25, 2023 · 1 comment
Open

Show help as default command #154

Dadoum opened this issue Dec 25, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Dadoum
Copy link

Dadoum commented Dec 25, 2023

Hello,

I am making a CLI which only has subcommands, and as such I thought that is should show help when no command is given, how can I do that. I didn't find any way to show the default help outside of the help switch.

@andrey-zherikov
Copy link
Owner

Thanks for your question!

Unfortunately there is not public API for this yet but it's in todo list.

Although making an existing API public is a simple change, I'm afraid it might not be compatible with future changes to support easily configurable help screen. So IMO it's better to make the internals more suitable for customization and then make the API public.

@andrey-zherikov andrey-zherikov added the enhancement New feature or request label Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants