Commit fc69345f2fb22f8d47ea40650ac14e6d03b7ee4f

Authored by Henry Fredrick Schreiner
1 parent 1dc54dcd

Improve one more message

include/CLI/Error.hpp
@@ -172,7 +172,7 @@ class RequiresError : public ParseError { @@ -172,7 +172,7 @@ class RequiresError : public ParseError {
172 : RequiresError(curname + " requires " + subname, ExitCodes::RequiresError) {} 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 class ExcludesError : public ParseError { 176 class ExcludesError : public ParseError {
177 CLI11_ERROR_DEF(ParseError, ExcludesError) 177 CLI11_ERROR_DEF(ParseError, ExcludesError)
178 ExcludesError(std::string curname, std::string subname) 178 ExcludesError(std::string curname, std::string subname)
include/CLI/Option.hpp
@@ -298,7 +298,7 @@ class Option : public OptionBase<Option> { @@ -298,7 +298,7 @@ class Option : public OptionBase<Option> {
298 298
299 for(const Option_p &opt : parent->options_) 299 for(const Option_p &opt : parent->options_)
300 if(opt.get() != this && *opt == *this) 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 return this; 303 return this;
304 } 304 }