You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::cerr << fmt::format(fmt::fg(fmt::color::red), "ERROR: only up to three positional options may be given, but {} (\"{}\") additional option(s) where provided!", result.unmatched().size(), fmt::join(result.unmatched(), "")) << std::endl;
115
109
std::cout << options.help() << std::endl;
116
110
}
117
-
std::exit(EXIT_FAILURE);
111
+
throw cmd_parser_exit{ EXIT_FAILURE };
118
112
}
119
113
120
114
// parse backend_type and cast the value to the respective enum
std::cerr << fmt::format(fmt::fg(fmt::color::red), "ERROR: the number of load balancing weights ({}) must match the number of MPI ranks ({})!\n", mpi_load_balancing_weights.size(), comm.size()) << std::endl;
std::cerr << fmt::format(fmt::fg(fmt::color::red), "ERROR: only up to two positional options may be given, but {} (\"{}\") additional option(s) where provided!\n", result.unmatched().size(), fmt::join(result.unmatched(), "")) << std::endl;
std::cerr << fmt::format(fmt::fg(fmt::color::red), "ERROR: only up to two positional options may be given, but {} (\"{}\") additional option(s) where provided!\n", result.unmatched().size(), fmt::join(result.unmatched(), "")) << std::endl;
143
137
std::cout << options.help() << std::endl;
144
138
}
145
-
std::exit(EXIT_FAILURE);
139
+
throw cmd_parser_exit{ EXIT_FAILURE };
146
140
}
147
141
148
142
// parse svm_type and cast the value to the respective enum
std::cerr << fmt::format(fmt::fg(fmt::color::red), "ERROR: gamma must be greater than 0.0, but is {}!\n", std::get<real_type>(gamma_input)) << std::endl;
170
164
std::cout << options.help() << std::endl;
171
165
}
172
-
std::exit(EXIT_FAILURE);
166
+
throw cmd_parser_exit{ EXIT_FAILURE };
173
167
}
174
168
// provided gamma was legal -> override default value
std::cerr << fmt::format(fmt::fg(fmt::color::red), "ERROR: the number of load balancing weights ({}) must match the number of MPI ranks ({})!\n", mpi_load_balancing_weights.size(), comm.size()) << std::endl;
0 commit comments