summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parameters_parser.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parameters_parser.cc b/src/parameters_parser.cc
index 8ea0fc81..1633aa6b 100644
--- a/src/parameters_parser.cc
+++ b/src/parameters_parser.cc
@@ -7,7 +7,9 @@ String generate_switches_doc(const SwitchMap& switches)
{
String res;
for (auto& sw : switches)
- res += " -" + sw.key + (sw.value.takes_arg ? " <arg>: " : ": ") + sw.value.description + "\n";
+ res += format(" -{} {}: {}\n", sw.key,
+ sw.value.takes_arg ? "<arg>" : "",
+ sw.value.description);
return res;
}