Merge the cmdparser project into this prokect.

Merge the cmdparser project into this prokect.
Use jopt-simple to parse the arguments.