replace commons-cli with homemade option parser