Small code tweak in generate_switches_doc
This commit is contained in:
parent
e9c63316f5
commit
da0fe5d0bd
|
@ -7,7 +7,9 @@ String generate_switches_doc(const SwitchMap& switches)
|
||||||
{
|
{
|
||||||
String res;
|
String res;
|
||||||
for (auto& sw : switches)
|
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;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user