changes command line parsing to use appache commons parser