This commit is contained in:
AmirHossein Sojoodi 2024-02-29 20:27:48 +11:00 committed by GitHub
commit b4b70c08bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2130,9 +2130,21 @@ format_option
result += " ";
}
if (!l.empty())
auto is_first_name = true;
for (const auto& name : o.l)
{
result += " --" + toLocalString(l);
if (!name.empty())
{
if (is_first_name)
{
result += " --" + toLocalString(name);
is_first_name = false;
}
else
{
result += ", --" + toLocalString(name);
}
}
}
auto arg = !o.arg_help.empty() ? toLocalString(o.arg_help) : "arg";