51 string CommandOptionWithPositionArg :: checkArguments()
53 string errstr = CommandOptionWithAnyArg::checkArguments();
55 if( errstr !=
string() )
58 vector<string>::size_type vecIndex;
59 for( vecIndex = 0; vecIndex < value.size(); vecIndex++ )
61 string thisPosSpec = getPositionSpec( vecIndex );
62 if( thisPosSpec !=
string() )
67 pos.setToString( value[vecIndex], thisPosSpec );
68 positions.push_back(
pos );
72 errstr +=
"\"" + value[vecIndex] +
"\" is not a valid position.";
77 errstr +=
"\"" + value[vecIndex] +
"\" is not a valid position.";