Decent command line parsing and execution for Java
command-line-arguments, console, console-application, java, symfony
Solution
So... After trying different so-called command-line arguments parsers, and seeing that no one were doing the job well enough (mainly no color handling), I decided to port Symfony2's Console component in Java. You can see the result here: https://github.com/Nanocom/console.
At the moment, it is still in beta-state. Still need to finish some parts, but you can already declare your commands and execute them.
Hope you'll like it! License is MIT.
And any contribution is welcome!
Problem
I'm coming from Symfony2's world (PHP) and I'm trying to find a decent equivalent of its Console component. I tried a lot of stuff: args4j, jcommander, etc... But I want something like this : http://symfony.com/doc/current/components/console.html#creating-a-basic-command. I want to be able to write a class where I configure my parameters (jcommander and args4j do that well), AND where I write my related `execute()` method, which would be called automatically. Does anything like that exist in Java? Thanks.