Commit fc69345f2fb22f8d47ea40650ac14e6d03b7ee4f
1 parent
1dc54dcd
Improve one more message
Showing
2 changed files
with
2 additions
and
2 deletions
include/CLI/Error.hpp
| ... | ... | @@ -172,7 +172,7 @@ class RequiresError : public ParseError { |
| 172 | 172 | : RequiresError(curname + " requires " + subname, ExitCodes::RequiresError) {} |
| 173 | 173 | }; |
| 174 | 174 | |
| 175 | -/// Thrown when a exludes option is present | |
| 175 | +/// Thrown when an excludes option is present | |
| 176 | 176 | class ExcludesError : public ParseError { |
| 177 | 177 | CLI11_ERROR_DEF(ParseError, ExcludesError) |
| 178 | 178 | ExcludesError(std::string curname, std::string subname) | ... | ... |
include/CLI/Option.hpp
| ... | ... | @@ -298,7 +298,7 @@ class Option : public OptionBase<Option> { |
| 298 | 298 | |
| 299 | 299 | for(const Option_p &opt : parent->options_) |
| 300 | 300 | if(opt.get() != this && *opt == *this) |
| 301 | - throw OptionAlreadyAdded(opt->get_name()); | |
| 301 | + throw OptionAlreadyAdded(opt->get_name() + " is already added"); | |
| 302 | 302 | |
| 303 | 303 | return this; |
| 304 | 304 | } | ... | ... |