Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Parsing a command line
final GnuParser parser = new GnuParser();
final Options options = configureOptions();
// parse with the parser
CommandLine cmdLine = null;
try {
cmdLine = parser.parse(options, args);
} catch(ParseException e) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment