diff --git a/README.md b/README.md index cd330c2..5dae8ab 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,9 @@ [![Conan.io][conan-badge]][conan-link] [![Try CLI11 1.6 online][wandbox-badge]][wandbox-link] +[What's new](./CHANGELOG.md) • [Documentation][gitbook] • -[API Reference][api-docs] • -[What's new](./CHANGELOG.md) +[API Reference][api-docs] CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface. diff --git a/include/CLI/StringTools.hpp b/include/CLI/StringTools.hpp index 3f9f213..6414c4f 100644 --- a/include/CLI/StringTools.hpp +++ b/include/CLI/StringTools.hpp @@ -243,7 +243,7 @@ inline size_t escape_detect(std::string &str, size_t offset) { if((next == '\"') || (next == '\'') || (next == '`')) { auto astart = str.find_last_of("-/ \"\'`", offset - 1); if(astart != std::string::npos) { - if(str[astart] == (str[offset] == '=') ? '-' : '/') + if(str[astart] == ((str[offset] == '=') ? '-' : '/')) str[offset] = ' '; // interpret this as a space so the split_up works properly } }