Replies: 2 comments 5 replies
-
That is weird. If a help option is specified, that should not happen. Does your |
Beta Was this translation helpful? Give feedback.
4 replies
-
Also, the Your main method can be simplified to this: static void main(String[] args)
{
int rc = new CommandLine(new App()).execute(args);
System.exit(rc);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have a small app with this main below. There is one command with a required option. When I execute with -h, the parseArgs fail because of the missing required option. Is there a way to parse the args to get the usageHelpRequested flag set and evaluated before failing because of the missing required options?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions