Remove check for container when generating help message. (#170)

Some positional parameters would be listed in the help text and others
would not, when what is desired is that no positional parameters are
listed with the other command options. This change suppresses the help
listing for all positional parameters.
This commit is contained in:
linus-sherrill 2019-06-18 04:16:31 -04:00 committed by jarro2783
parent 9064fdf459
commit 9910095719

View File

@ -1962,8 +1962,7 @@ Options::help_one_group(const std::string& g) const
for (const auto& o : group->second.options)
{
if (o.is_container &&
m_positional_set.find(o.l) != m_positional_set.end() &&
if (m_positional_set.find(o.l) != m_positional_set.end() &&
!m_show_positional)
{
continue;
@ -1982,8 +1981,7 @@ Options::help_one_group(const std::string& g) const
auto fiter = format.begin();
for (const auto& o : group->second.options)
{
if (o.is_container &&
m_positional_set.find(o.l) != m_positional_set.end() &&
if (m_positional_set.find(o.l) != m_positional_set.end() &&
!m_show_positional)
{
continue;