mirror of https://github.com/jarro2783/cxxopts.git
parent
929bf2de37
commit
5b3bb43639
|
|
@ -2150,9 +2150,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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue