mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-28 17:13:00 +03:00
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;
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user