Commit f59570328a765a8aae7fe0fff25ed4f4154d2b39

Authored by Henry Schreiner
Committed by GitHub
2 parents e246fa3a cb906d1a

Merge pull request #24 from nathanhourt/patch-1

Fix #23: Respect fallthrough_ in _valid_subcommand
Showing 1 changed file with 1 additions and 1 deletions
include/CLI/App.hpp
... ... @@ -857,7 +857,7 @@ class App {
857 857 for(const App_p &com : subcommands_)
858 858 if(com->check_name(current))
859 859 return true;
860   - if(parent_ != nullptr)
  860 + if(parent_ != nullptr && fallthrough_)
861 861 return parent_->_valid_subcommand(current);
862 862 else
863 863 return false;
... ...