views:

564

answers:

4

What CLI parser for Java is easy to use and more scalable than others?

+3  A: 

I don't think scalability is a factor here. you want something which is feature complete and easy to use. I mostly use jargs but I generally dislike it's API (using it out of habit).

you can also try java getopt impl, which I did not personally used.

Omry
I remember when we used JArgs we wrote our own interface to wrap around its API. It worked fine but wasn't as easy to use as it might have been.
Dave Webb
+13  A: 

Here are some of the most popular. They are all pretty feature complete, and having used the top two I can recommend them.

EDIT: For completeness, here are some others I've come across

Thx. Now i'll use the Commons CLI, because i like Appache's products
Max
Good choice. You can always rely on Apache Commons to be rock solid implementations.
+1  A: 

JLine is a library for building shell like applications in Java. Groovy is using it for it's shell implementation.

Gregory Mostizky