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

Support for default command #513

Open
mkarg opened this issue Mar 23, 2021 · 1 comment
Open

Support for default command #513

mkarg opened this issue Mar 23, 2021 · 1 comment

Comments

@mkarg
Copy link
Collaborator

mkarg commented Mar 23, 2021

For some applications it might be beneficial to have a default command which will be invoked if no command is explicitly provided. Currently in this situation usage() is executed, but it might be a good thing if instead the default command gets executed if one is declared:

 // don't show usage() but instead invoke this command if none is provided at runtime
jCommander.setDefaultCommand(command);
@mkarg
Copy link
Collaborator Author

mkarg commented Sep 1, 2022

@cbeust I would provide a PR if you think this feature is benefical.

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