Remove extra spaces for switches list in info

This commit is contained in:
Delapouite 2018-10-28 13:34:19 +01:00
parent 3b40ab82f4
commit 44ce4bc069

View File

@ -16,7 +16,7 @@ String generate_switches_doc(const SwitchMap& switches)
const ColumnCount maxlen = *std::max_element(switches_len.begin(), switches_len.end());
for (auto& sw : switches) {
res += format(" -{} {}{}{}\n",
res += format("-{} {}{}{}\n",
sw.key,
sw.value.takes_arg ? "<arg>" : "",
String{' ', maxlen - switch_len(sw) + 1},