Merge pull request #7 from wichtounet/space_between_groups
Add an eol between each option groups
This commit is contained in:
commit
0cd24a7e6b
@ -909,9 +909,13 @@ Options::help(const std::vector<std::string>& groups) const
|
|||||||
std::string result = "Usage:\n " + m_program + " [OPTION...]"
|
std::string result = "Usage:\n " + m_program + " [OPTION...]"
|
||||||
+ m_help_string + "\n\n";
|
+ m_help_string + "\n\n";
|
||||||
|
|
||||||
for (const auto& g : groups)
|
for (std::size_t i = 0; i < groups.size(); ++i)
|
||||||
{
|
{
|
||||||
result += help_one_group(g);
|
result += help_one_group(groups[i]);
|
||||||
|
if (i < groups.size() - 1)
|
||||||
|
{
|
||||||
|
result += "\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user