Changed method validateCmdOption()