parse command line and exit with help added