We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The generated help with included subcommands, does not show how to apply the subcommand.
For example:
public class DemoApp { @Command(name = "demo", subcommands = DemoCmd.class) static class Demo implements Runnable { @Option(names = {"-h", "--help"}, usageHelp = true) private boolean help; public void run() { System.out.println("Print help message."); } } @Command(name = "cmd") static class DemoCmd implements Runnable { @ParentCommand private Demo parent; @Override public void run() { System.out.println("DONE"); } } public static void main(String[] args) { CommandLine.run(new Demo(), System.out, "-h"); } }
prints to the console:
Usage: demo [-h] -h, --help Commands: cmd
The user may be asking how to apply the subcommand since it is only showing demo [-h].
demo [-h]
Could be possible to show for example:
Usage: demo [-h] [command]
The text was updated successfully, but these errors were encountered:
I think that's a good idea. Do you think you can create a pull request for this?
Sorry, something went wrong.
I created the pull request #337 for this feature.
Nice work, thank you! I merged the PR into master and this will be part of the upcoming 3.0 release (no timeline yet).
df518bc
No branches or pull requests
The generated help with included subcommands, does not show how to apply the subcommand.
For example:
prints to the console:
The user may be asking how to apply the subcommand since it is only showing
demo [-h]
.Could be possible to show for example:
The text was updated successfully, but these errors were encountered: