What is a good way of parsing command line arguments in Java?
Take a look at the Commons CLI project, lots of good stuff in there.