fix command line option parsing