Commit afd7dce93ab3f0dec58d71c2dd72e302cb96eedb

Authored by henryiii
Committed by Henry Fredrick Schreiner
1 parent 904793ea

Update App.hpp to remove a warning

Showing 1 changed file with 1 additions and 1 deletions
include/CLI/App.hpp
... ... @@ -817,7 +817,7 @@ protected:
817 817  
818 818 if(require_subcommand_ < 0 && selected_subcommands_.size() == 0)
819 819 throw RequiredError("Subcommand required");
820   - else if(require_subcommand_ > 0 && selected_subcommands_.size() != (int) require_subcommand_)
  820 + else if(require_subcommand_ > 0 && (int) selected_subcommands_.size() != require_subcommand_)
821 821 throw RequiredError(std::to_string(require_subcommand_) + " subcommand(s) required");
822 822  
823 823 // Convert missing (pairs) to extras (string only)
... ...