Fix suggestion if only one available
This commit is contained in:
parent
1aa8b387e1
commit
5eb3e2aa75
|
@ -1231,7 +1231,7 @@ string ArgumentParser::findSuggestions(int argc, const char *const *argv, unsign
|
|||
suggestionStr += "\nDid you mean ";
|
||||
size_t i = 0;
|
||||
for (const auto &suggestion : bestSuggestions) {
|
||||
if (++i == suggestionCount) {
|
||||
if (++i == suggestionCount && suggestionCount != 1) {
|
||||
suggestionStr += " or ";
|
||||
} else if (i > 1) {
|
||||
suggestionStr += ", ";
|
||||
|
|
Loading…
Reference in New Issue