Replace curly single-quotes with a standard quote character. This fixes an issue with printing those characters on Windows.
This commit is contained in:
parent
e005d07656
commit
fe78ff39fb
@ -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"
|
||||
)
|
||||
{
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user