And display it before returning on error.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
ceph_option_strings = po::collect_unrecognized(parsed.options,
po::include_positional);
+ } catch(po::error &e) {
+ std::cerr << e.what() << std::endl;
+ return 1;
}
vector<const char *> ceph_options, def_args;
ceph_options.reserve(ceph_option_strings.size());
ceph_option_strings = po::collect_unrecognized(parsed.options,
po::include_positional);
+ } catch(po::error &e) {
+ std::cerr << e.what() << std::endl;
+ return 1;
}
vector<const char *> ceph_options, def_args;
ceph_options.reserve(ceph_option_strings.size());
ceph_option_strings = po::collect_unrecognized(parsed.options,
po::include_positional);
+ } catch(po::error &e) {
+ std::cerr << e.what() << std::endl;
+ return 1;
}
vector<const char *> ceph_options, def_args;
ceph_options.reserve(ceph_option_strings.size());
if (err)
return err;
return eccommand.run();
+ } catch(po::error &e) {
+ cerr << e.what() << endl;
+ return 1;
}
}
if (err)
return err;
return ecbench.run();
+ } catch(po::error &e) {
+ cerr << e.what() << endl;
+ return 1;
}
}