18 cxxopts::ParseResult
parse(
int argc,
char *argv[]) {
20 cxxopts::Options options(
21 argv[0],
"Structure calculations for molecular simulations");
22 options.positional_help(
"[optional args]").show_positional_help();
23 options.allow_unrecognised_options().add_options()(
24 "c,config",
"Yaml Config",
25 cxxopts::value<std::string>()->default_value(
"conf.yml"))
27 (
"h,help",
"Print help");
28 auto result = options.parse(argc, argv);
30 if (result.count(
"help")) {
35 if (result.arguments().size() == 0) {
39 }
catch (
const cxxopts::OptionException &e) {
cxxopts::ParseResult parse(int argc, char *argv[])