andrey-zherikov / argparse

Parser for command-line arguments
https://andrey-zherikov.github.io/argparse/
Boost Software License 1.0
30 stars 6 forks source link

Show help as default command #154

Open Dadoum opened 8 months ago

Dadoum commented 8 months ago

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 commented 8 months ago

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.