Fixed return value of ArgumentParser::find() for when the search string is not found, the correct value is now -1.

This commit is contained in:
Robert Osfield
2008-11-05 11:56:44 +00:00
parent 822b1c9566
commit 766dcf4aeb
2 changed files with 2 additions and 2 deletions

View File

@@ -230,7 +230,7 @@ int ArgumentParser::find(const std::string& str) const
return pos;
}
}
return 0;
return -1;
}
bool ArgumentParser::match(int pos, const std::string& str) const