Merge pull request #7 from wichtounet/space_between_groups

Add an eol between each option groups
This commit is contained in:
jarro2783 2014-10-27 10:59:41 +11:00
commit 0cd24a7e6b

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;