Link Details

Link 76448 thumbnail
User 207620 avatar

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.
  • 8
  • 18
  • 1932
  • 765

Comments

Add your comment
User 210175 avatar

jtheory replied ago:

0 votes Vote down Vote up Reply

Summary: try JewelCLI. Skip the post; you'll choke on the snark.

User 274973 avatar

jesper.terkelsen replied ago:

0 votes Vote down Vote up Reply

Or you can try Apache Commons Cli (http://commons.apache.org/cli/index.html) if you are not on a Java 5 project yet.
,

User 278711 avatar

pinkman replied ago:

0 votes Vote down Vote up Reply

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

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.