PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ show_usage_check_req_opts()

bool pism::show_usage_check_req_opts ( const Logger log,
const std::string &  execname,
const std::vector< std::string > &  required_options,
const std::string &  usage 
)

In a single call a driver program can provide a usage string to the user and check if required options are given, and if not, end.

Returns true if PISM should terminate after printing some messages to stdout.

Definition at line 51 of file pism_options.cc.

References pism::options::Bool(), pism::Logger::error(), pism::Logger::message(), show_usage(), and version().

Referenced by main().