1 #ifndef FWCore_Framework_CmsRunParser_h 2 #define FWCore_Framework_CmsRunParser_h 4 #include "boost/program_options.hpp" 11 using MapOrExit = std::variant<boost::program_options::variables_map, int>;
16 return std::holds_alternative<boost::program_options::variables_map>(
output);
19 return std::get<boost::program_options::variables_map>(
output);
25 boost::program_options::options_description
desc_;
27 boost::program_options::positional_options_description
pos_options_;
32 static inline const char*
const kPythonOpt =
"pythonOptions";
35 static inline const char*
const kCmdOpt =
"command";
46 static inline const char*
const kHelpOpt =
"help";
static const char *const kEnableJobreportCommandOpt
boost::program_options::options_description desc_
static const char *const kJobModeCommandOpt
static const char *const kStrictOpt
static boost::program_options::variables_map getVM(const MapOrExit &output)
static const char *const kCmdOpt
boost::program_options::positional_options_description pos_options_
static const char *const kHelpOpt
static int getExit(const MapOrExit &output)
static const char *const kEnableJobreportOpt
static const char *const kJobreportOpt
static const char *const kParameterSetOpt
static const char *const kHelpCommandOpt
std::variant< boost::program_options::variables_map, int > MapOrExit
static const char *const kJobModeOpt
static const char *const kCmdCommandOpt
static const char *const kSizeOfStackForThreadOpt
static const char *const kSizeOfStackForThreadCommandOpt
CmsRunParser(const char *name)
boost::program_options::options_description all_options_
static const char *const kPythonOpt
static bool hasVM(const MapOrExit &output)
static const char *const kJobreportCommandOpt
static const char *const kNumberOfThreadsOpt
static const char *const kPythonOptDefault
static const char *const kNumberOfThreadsCommandOpt
MapOrExit parse(int argc, const char *argv[]) const
static bool hasExit(const MapOrExit &output)