Created
January 18, 2013 23:03
-
-
Save wspeirs/4569447 to your computer and use it in GitHub Desktop.
Parsing a command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { | |
e.printStackTrace(); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment