31 const auto &vm = enum_opt.
vm();
34 if (vm.count(
"desc")) {
37 if (vm.count(
"help")) {
38 json[
"help"] =
static_cast<bool>(vm.count(
"help"));
40 if (vm.count(
"method")) {
41 json[
"method"] = enum_opt.
method();
43 if (vm.count(
"settings")) {
46 if (vm.count(
"input")) {
50 if (vm.count(
"min")) {
53 if (vm.count(
"max")) {
56 if (vm.count(
"filter")) {
59 if (vm.count(
"all") && !vm[
"all"].defaulted()) {
62 if (vm.count(
"verbosity") && !vm[
"verbosity"].defaulted()) {
65 if (vm.count(
"scelnames")) {
68 if (vm.count(
"confignames")) {
71 if (vm.count(
"dry-run")) {
72 json[
"dry_run"] = enum_opt.
dry_run();
81 log.
indent() <<
"Input from JSON (--input or --setings):\n"
82 << json_options << std::endl
84 log.
indent() <<
"Input from `casm enum` options:\n"
85 << cli_options_as_json << std::endl
90 json_options, cli_options_as_json);
93 << json_combined << std::endl
bool all_existing() const
const std::vector< std::string > & config_strs() const
std::string input_str() const
Returns the path corresponding to add_input_suboption.
const std::vector< std::string > & supercell_strs() const
Returns the list of the supercells for add_scelnames_suboption()
const fs::path settings_path() const
Returns the path corresponding to add_settings_suboption.
const std::vector< std::string > & desc_vec() const
std::string method() const
const std::string & filter_str() const
const std::string & verbosity_str() const
Returns the string corresponding to add_verbosity_suboption()
po::variables_map & vm()
Get the variables map.
jsonParser & put_obj()
Puts new empty JSON object.
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
ParentInputParser make_enum_parent_parser(Log &log, jsonParser const &json_options, jsonParser const &cli_options_as_json)
Combine –input / –settings JSON with CLI options.
jsonParser combine_configuration_enum_json_options(jsonParser const &json_options, jsonParser const &cli_options_as_json)