I’ve used the Apache Commons CLI library for command-line argument parsing. It’s fairly easy to use and has reasonably good documentation.
Which library you choose probably comes down to which style of options you prefer (“–gnu-style” or “-javac-style”).