*/
virtual void handle() {
this->call(value);
+ used = true;
}
/**
*/
virtual bool understand(const std::string & argv) {
- if ((!isUsed()) && (argv.find(name) == 0)) {
+ if (argv.find(name) == 0) {
std::size_t pos = argv.find("=");
if (pos != name.size()) {
throw OptionFailedConversion("Value for option: " + name + " failed conversion to the required type");
}
- used = true;
return true;
}
return false;
*/
virtual void handle() {
this->call();
+ used = true;
}
/**
* used to check against next value.
*/
virtual bool understand(const std::string & argv) {
- if ((!isUsed()) &&
- (argv == name)) {
- used = true;
+ if (argv == name) {
return true;
}
return false;