Small code tweak in generate_switches_doc

This commit is contained in:
Maxime Coste 2016-09-05 23:34:03 +01:00
parent e9c63316f5
commit da0fe5d0bd

View File

@ -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;
}