By tgautier
via javathink.blogspot.com
Published: Apr 19 2008 / 21:41
Man, every so often I wonder - am I really living in the future? Because, and maybe this makes me seem a bit old, I remember thinking 2008 was a nearly impossible date to consider ever reaching - and yet here we are.
We should have flying cars. Colonies on mars. Space elevators. Bullet trains. Room-temperature superconductors. And a command line parser in Java that doesn't SUCK.
Comments
jtheory replied ago:
Summary: try JewelCLI. Skip the post; you'll choke on the snark.
jesper.terkelsen replied ago:
Or you can try Apache Commons Cli (http://commons.apache.org/cli/index.html) if you are not on a Java 5 project yet.
,
pinkman replied ago:
I use the GNU GetOpt Java port. From there docs:
"This is a Java port of GNU getopt, a class for parsing command line arguments passed to programs. It it based on the C getopt() functions in glibc 2.0.6 and should parse options in a 100% compatible manner"
http://www.urbanophile.com/arenn/hacking/getopt/gnu.getopt.Getopt.html
Voters For This Link (8)
Voters Against This Link (18)