Commit 77d8a704 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

lib/CLI11.hpp: do not display empty groups

parent 1be30a61
......@@ -2653,7 +2653,7 @@ class App {
bool npos = false;
std::vector<std::string> groups;
for(const Option_p &opt : options_) {
if(opt->nonpositional()) {
if(opt->nonpositional() && opt->help_level_ <= help_level) {
npos = true;
// Add group if it is not already in there
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment