Changed command line parsing

fixed a bug with the command line parsing that was making the optional
argument non-optional.