version 1.2, 2009/05/05 09:01:33
|
version 1.3, 2012/07/04 06:02:09
|
|
|
| |
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++; |