command line option parsing