Commit 32be452302acaf4d93f98bbcc1a2a12e47d7f1ee

Authored by Baptiste Wicht
1 parent f691449c

Fix compilation

Showing 1 changed file with 1 additions and 2 deletions
src/cxxopts.hpp
... ... @@ -790,7 +790,7 @@ namespace cxxopts
790 790  
791 791 if (o.has_default)
792 792 {
793   - result += " [" + o.default_value + "]";
  793 + result += " [" + toLocalString(o.default_value) + "]";
794 794 }
795 795 }
796 796  
... ... @@ -1159,7 +1159,6 @@ Options::help_one_group(const std::string& g) const
1159 1159 for (const auto& o : group->second.options)
1160 1160 {
1161 1161 auto s = format_option(o);
1162   - longest = std::max(longest, s.size());
1163 1162 longest = std::max(longest, stringLength(s));
1164 1163 format.push_back(std::make_pair(s, String()));
1165 1164 }
... ...