Not sure what the restriction on external libraries are, but would have liked an arg parser to be used such as commons-cli - the checks he has are very rudimentary.