Commit 4e62a0a980c699a40073f5382fd3b821e8967b33
Committed by
Henry Schreiner
1 parent
afde0b08
#76 | Remove "is required" string passed as an argument to RequiredError() const…
…ructor to avoid double printing. The string "is required" is already added internally by RequiredError() class.
Showing
1 changed file
with
1 additions
and
1 deletions
include/CLI/App.hpp
| ... | ... | @@ -1176,7 +1176,7 @@ class App { |
| 1176 | 1176 | |
| 1177 | 1177 | // Required but empty |
| 1178 | 1178 | if(opt->get_required() && opt->count() == 0) |
| 1179 | - throw RequiredError(opt->single_name() + " is required"); | |
| 1179 | + throw RequiredError(opt->single_name()); | |
| 1180 | 1180 | } |
| 1181 | 1181 | // Requires |
| 1182 | 1182 | for(const Option *opt_req : opt->requires_) | ... | ... |