Minor modification at cmdopt