Add an eol between each option groups

This commit is contained in:
Baptiste Wicht 2014-10-26 19:18:41 +01:00
parent 9b3d20d611
commit a525bb1eef

View File

@ -909,9 +909,13 @@ Options::help(const std::vector<std::string>& groups) const
std::string result = "Usage:\n " + m_program + " [OPTION...]"
+ 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;