From fe78ff39fbb26ec248a7daf1ab3e3fb9d6babb4b Mon Sep 17 00:00:00 2001 From: Pete Wall Date: Tue, 20 Dec 2016 10:08:55 -0600 Subject: [PATCH] Replace curly single-quotes with a standard quote character. This fixes an issue with printing those characters on Windows. --- include/cxxopts.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index c33c06a..ca65468 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -318,7 +318,7 @@ namespace cxxopts { public: 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: 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: 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: 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: 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 ) : OptionParseException( - u8"Option ‘" + option + u8"’ does not take an argument, but argument‘" - + arg + "’ given") + u8"Option '" + option + u8"' does not take an argument, but argument'" + + arg + "' given") { } }; @@ -378,7 +378,7 @@ namespace cxxopts { public: 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 ) : OptionParseException( - u8"Argument ‘" + arg + u8"’ failed to parse" + u8"Argument '" + arg + u8"' failed to parse" ) { }