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:
parent
9064fdf459
commit
9910095719
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user