Bläddra i källkod

fixed help message

develop
Robin Thoni 7 år sedan
förälder
incheckning
047c68626b
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      cli/Interface/CommandLineParser.cpp

+ 2
- 2
cli/Interface/CommandLineParser.cpp Visa fil

@@ -68,7 +68,7 @@ int CommandLineParser::showHelp(int status, bool stdErr)
68 68
         }
69 69
         std::string value = "<" + opt->getValueName();
70 70
         if (!opt->getDefaultValue().empty()) {
71
-            value += opt->getDefaultValue();
71
+            value += "=" + opt->getDefaultValue();
72 72
         }
73 73
         value += ">";
74 74
         if (value.length() > longestValue) {
@@ -84,7 +84,7 @@ int CommandLineParser::showHelp(int status, bool stdErr)
84 84
         {
85 85
             std::string value = "<" + opt->getValueName();
86 86
             if (!opt->getDefaultValue().empty()) {
87
-                value += opt->getDefaultValue();
87
+                value += "=" + opt->getDefaultValue();
88 88
             }
89 89
             value += ">";
90 90
             out << value << std::string(longestValue - value.length() + 2, ' ');

Laddar…
Avbryt
Spara