parse command line options