PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ set_keyword_from_option()

void pism::set_keyword_from_option ( Config config,
const std::string &  name,
const std::string &  parameter,
const std::string &  choices 
)

Set a keyword parameter from a command-line option.

Set one keyword parameter using command-line options.

This sets the parameter "parameter" after checking the "-name" command-line option. This option requires an argument, which has to match one of the keyword given in a comma-separated list "choices_list".

Definition at line 602 of file ConfigInterface.cc.

References CONFIG_USER, pism::Config::doc(), pism::Config::FORGET_THIS_USE, pism::Config::get_string(), pism::options::Option< T >::is_set(), and pism::Config::set_string().

Referenced by set_parameter_from_options().