@Parameter(names = "--help", help = true) |
private boolean help; |
I want to actually print the usage when the user launches the app without passing any optionsapp.exe< should print usage>I dont see a way to indicate jcommander to do this.
Also another question. Is there in built support for showing the usage when user types app.exe -helpor do I have to explicitly process a help option by adding the below to the main options?
@Parameter(names ="--help", help =true)
privatebooleanhelp;Thanks,
Vips
@Parameter(names = "--help", help = true) |
private boolean help; |