This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java port of getopt()

 
Layne Lund
Ranch Hand
Posts: 3061
  • 0
  • 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: 9214
9
Linux Mac OS X Windows
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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