Compute command-line arguments with Apache Commons CLI
baptiste-wicht.com
baptiste-wicht.com
http://beust.com/weblog/2010/07/13/announcing-jcommander-1-0...
It's annotation based though and looks to be a bit easier to use Commons CLI - which is what I currently use on projects.