Replace curly single-quotes with a standard quote character. This fixes an issue with printing those characters on Windows.

This commit is contained in:
Pete Wall 2016-12-20 10:08:55 -06:00
parent e005d07656
commit fe78ff39fb

View File

@ -318,7 +318,7 @@ namespace cxxopts
{ {
public: public:
option_exists_error(const std::string& option) option_exists_error(const std::string& option)
: OptionSpecException(u8"Option " + option + u8" already exists") : OptionSpecException(u8"Option '" + option + u8"' already exists")
{ {
} }
}; };
@ -327,7 +327,7 @@ namespace cxxopts
{ {
public: public:
invalid_option_format_error(const std::string& format) invalid_option_format_error(const std::string& format)
: OptionSpecException(u8"Invalid option format " + format + u8"") : OptionSpecException(u8"Invalid option format '" + format + u8"'")
{ {
} }
}; };
@ -336,7 +336,7 @@ namespace cxxopts
{ {
public: public:
option_not_exists_exception(const std::string& option) option_not_exists_exception(const std::string& option)
: OptionParseException(u8"Option " + option + u8" does not exist") : OptionParseException(u8"Option '" + option + u8"' does not exist")
{ {
} }
}; };
@ -345,7 +345,7 @@ namespace cxxopts
{ {
public: public:
missing_argument_exception(const std::string& option) missing_argument_exception(const std::string& option)
: OptionParseException(u8"Option " + option + u8" is missing an argument") : OptionParseException(u8"Option '" + option + u8"' is missing an argument")
{ {
} }
}; };
@ -354,7 +354,7 @@ namespace cxxopts
{ {
public: public:
option_requires_argument_exception(const std::string& option) option_requires_argument_exception(const std::string& option)
: OptionParseException(u8"Option " + option + u8" requires an argument") : OptionParseException(u8"Option '" + option + u8"' requires an argument")
{ {
} }
}; };
@ -368,8 +368,8 @@ namespace cxxopts
const std::string& arg const std::string& arg
) )
: OptionParseException( : OptionParseException(
u8"Option " + option + u8" does not take an argument, but argument" u8"Option '" + option + u8"' does not take an argument, but argument'"
+ arg + " given") + arg + "' given")
{ {
} }
}; };
@ -378,7 +378,7 @@ namespace cxxopts
{ {
public: public:
option_not_present_exception(const std::string& option) option_not_present_exception(const std::string& option)
: OptionParseException(u8"Option " + option + u8" not present") : OptionParseException(u8"Option '" + option + u8"' not present")
{ {
} }
}; };
@ -391,7 +391,7 @@ namespace cxxopts
const std::string& arg const std::string& arg
) )
: OptionParseException( : OptionParseException(
u8"Argument " + arg + u8" failed to parse" u8"Argument '" + arg + u8"' failed to parse"
) )
{ {
} }