parse options in command line