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

Add ability to infer root command name from CLI args #633

Open
bisgardo opened this issue Apr 23, 2024 · 0 comments
Open

Add ability to infer root command name from CLI args #633

bisgardo opened this issue Apr 23, 2024 · 0 comments

Comments

@bisgardo
Copy link

The command name of a (Async)ParsableCommand is inferred from the name of the struct by default.

For the root command, this name is never actually part of a command; it's only used in the usage string.
You can of course override it manually, but you never know if the executable gets renamed.

In my understanding, it's common for the usage string to use the actual name the command was invoked with (i.e. argv[0] in C terms). And I also think that's the only appropriate default behavior.

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

No branches or pull requests

1 participant