We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b429175 commit cacc04aCopy full SHA for cacc04a
include/CLI/impl/App_inl.hpp
@@ -434,13 +434,13 @@ CLI11_NODISCARD CLI11_INLINE CLI::App_p App::get_subcommand_ptr(int index) const
434
}
435
436
CLI11_NODISCARD CLI11_INLINE CLI::App *App::get_option_group(std::string group_name) const {
437
-for(const App_p &app : subcommands_) {
438
- if(app->name_.empty() && app->group_ == group_name) {
439
- return app.get();
+ for(const App_p &app : subcommands_) {
+ if(app->name_.empty() && app->group_ == group_name) {
+ return app.get();
440
+ }
441
442
+ throw OptionNotFound(group_name);
443
-throw OptionNotFound(group_name);
- }
444
445
CLI11_NODISCARD CLI11_INLINE std::size_t App::count_all() const {
446
std::size_t cnt{0};
0 commit comments