fix command line options checking
Merge pull request #7 from maxogden/patch-1

fix command line options checking