This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java port of getopt()

 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking for a Java port of getopt(). After a quick search at Source Forge, I found a whole list of possibilities. Does anyone have any experience with these (or any other) getopt() port? In particular, I am interested in their relative compliance to POSIX standards.

Layne
 
Joe Ess
Bartender
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never needed one, but I've kept CLI from the Jakarta Commons in the back of my mind should the need arise. It apparently has parser for POSIX compliant argument strings.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I originally decided to go with a Source Forge project called JArgs. However, I just downloaded Jakarta Commons CLI and will see how it compairs.

Layne
 
Mark Wuest
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've used the gnu port successfully.

There's a link on this page:

http://www.gnu.org/software/java/packages.html

Mark
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Joe Ess:
I've never needed one, but I've kept CLI from the Jakarta Commons in the back of my mind should the need arise. It apparently has parser for POSIX compliant argument strings.


I've used this one in the past. It works well, although I'm not sure about POSIX compatibility.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic