21main(
int argc,
char* argv[]) {
24 bool parser_error =
true;
35 if (command_options.
parse(argc, argv,
true)) {
41 if (scenario == Scenario::BASIC) {
43 ret_code = scen.
run();
44 }
else if (scenario == Scenario::AVALANCHE) {
46 ret_code = scen.
run();
48 }
catch (
const std::exception& e) {
51 std::cerr << std::endl <<
"ERROR: running perfdhcp: "
52 << e.what() << std::endl;
55 std::cerr << std::endl <<
"ERROR: parsing command line options: "
56 << e.what() << std::endl;
58 if (diags.find(
'e') != std::string::npos) {
59 std::cerr <<
"Fatal error" << std::endl;
64 std::cerr << std::endl <<
"ERROR: running perfdhcp"
68 std::cerr << std::endl <<
"ERROR: parsing command line options"
71 if (diags.find(
'e') != std::string::npos) {
72 std::cerr <<
"Fatal error" << std::endl;
int main(int argc, char *argv[])