We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cee6d23 commit f98e478Copy full SHA for f98e478
Common/include/option_structure.inl
@@ -245,7 +245,7 @@ class COptionArray final : public COptionBase {
245
string SetValue(const vector<string>& option_value) override {
246
COptionBase::SetValue(option_value);
247
// Check that the size is correct
248
- if ((option_value.size() != size_t(size) && allow_fewer) || option_value.size() > size_t(size)) {
+ if ((option_value.size() < size_t(size) && !allow_fewer) || option_value.size() > size_t(size)) {
249
string newstring;
250
newstring.append(this->name);
251
newstring.append(": wrong number of arguments: ");
0 commit comments