(file) Return to OptionManager.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / General

Diff for /pegasus/src/Pegasus/General/OptionManager.cpp between version 1.2 and 1.3

version 1.2, 2009/05/05 09:01:33 version 1.3, 2012/07/04 06:02:09
Line 264 
Line 264 
  
             Option* option = _lookupOptionByCommandLineOptionName(arg + 1);             Option* option = _lookupOptionByCommandLineOptionName(arg + 1);
  
               // a Null option here could mean either
               // 1) option is missing
               // 2) option is invalid
               String optn = arg+1;
             if (!option)             if (!option)
             {             {
                 if (abortOnErr)                 if (abortOnErr)
                 {                 {
                       //option is invalid
                       if(optn.size() != 0)
                       {
                     throw OMMBadCmdLineOption(arg);                     throw OMMBadCmdLineOption(arg);
                 }                 }
                       //option is missing
                       else
                       {
                           throw OMMissingCommandLineOptionArgument(arg);
                       }
                   }
                 else                 else
                 {                 {
                     i++;                     i++;


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2