Fix bug in command line parsing
Merge pull request #7 from pratid/bug/cmd_line_opts

Fix bug in command line parsing