The Apache Commons CLI library provides a simple and easy to use API for working with the command line arguments and options. WWW: http://commons.apache.org/proper/commons-cli/