diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 3667cb4..0cfc86a 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1479,10 +1479,10 @@ namespace cxxopts if (!s.empty()) { - result += "-" + toLocalString(s) + ","; - if (!l.empty()) - { - result += ","; + result += "-" + toLocalString(s); + if (!l.empty()) + { + result += ","; } } else