Loading [MathJax]/jax/output/HTML-CSS/config.js
PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ 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().