lib/cli: minor consistency changes

BodgeMaster-unfinished
BodgeMaster 2022-07-21 09:39:45 +02:00
parent 7d7ce2ba6b
commit c9d6cf0b5e
1 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ namespace CLI {
argumentWaitingForValue = argumentsByShortName[argument[j]];
if (i+1 == argc) {
this->wrongUsage = true;
this->wrongUsageMessages.push_back(std::string("Argument expects value but has none: ")+argument.substr(j, 1));
this->wrongUsageMessages.push_back(std::string("Argument expects value but has none: ")+this->argumentsByShortName[argument[j]]->longName);
}
} else {
//assume the rest of the argv is a concatenated argument value
@ -171,7 +171,7 @@ namespace CLI {
this->positionalArguments.at(positionalArgumentCounter).value = argument;
} else {
this->wrongUsage = true;
this->wrongUsageMessages.push_back(std::string("Too many positional arguments. Unexpected encounter of: ")+argument);
this->wrongUsageMessages.push_back(std::string("Too many positional arguments! Unexpected encounter of: ")+argument);
}
positionalArgumentCounter++;
} else {