21 if (cli_options_as_json.
contains(
"min")) {
22 json_combined[
"min"] = cli_options_as_json[
"min"];
24 if (cli_options_as_json.
contains(
"max")) {
25 json_combined[
"max"] = cli_options_as_json[
"max"];
27 if (cli_options_as_json.
contains(
"filter")) {
28 json_combined[
"filter"] = cli_options_as_json[
"filter"];
30 if (cli_options_as_json.
contains(
"dry_run")) {
31 json_combined[
"dry_run"] = cli_options_as_json[
"dry_run"];
33 if (cli_options_as_json.
contains(
"verbosity")) {
34 json_combined[
"verbosity"] = cli_options_as_json[
"verbosity"];
44 parser.
value = notstd::make_unique<EnumerateSupercellsOptions>(
primclex);
45 auto &options = *parser.
value;
47 options.method_name = method_name;
53 std::vector<std::string> filter_expression;
54 parser.
optional(filter_expression,
"filter");
55 if (filter_expression.size()) {
PrimClex is the top-level data structure for a CASM project.
bool contains(const std::string &name) const
Return true if JSON object contains 'name'.
jsonParser combine_supercell_enum_json_options(jsonParser const &json_options, jsonParser const &cli_options_as_json)
DataFormatterFilter< DataObject > make_data_formatter_filter(std::string const &filter_expr, DataFormatterDictionary< DataObject > const &_dict)
int parse_verbosity(KwargsParser &parser, int default_verbosity=10)
void parse(InputParser< ConfigEnumOptions > &parser, std::string method_name, PrimClex const &primclex, DataFormatterDictionary< Configuration > const &dict)