#include <CmsRunParser.h>
|
using | MapOrExit = std::variant< boost::program_options::variables_map, int > |
|
|
boost::program_options::options_description | all_options_ |
|
boost::program_options::options_description | desc_ |
|
boost::program_options::positional_options_description | pos_options_ |
|
Definition at line 9 of file CmsRunParser.h.
◆ MapOrExit
◆ CmsRunParser()
edm::CmsRunParser::CmsRunParser |
( |
const char * |
name | ) |
|
Definition at line 53 of file CmsRunParser.cc.
References all_options_, desc_, kCmdCommandOpt, kEnableJobreportCommandOpt, kHelpCommandOpt, kJobModeCommandOpt, kJobreportCommandOpt, kNumberOfThreadsCommandOpt, kParameterSetOpt, kPythonOpt, kSizeOfStackForThreadCommandOpt, kStrictOpt, pos_options_, and relativeConstraints::value.
59 boost::program_options::value<std::string>(),
60 "file name to use for a job report file: default extension is .xml")(
63 boost::program_options::value<std::string>(),
64 "Job Mode for MessageLogger defaults - default mode is grid")(
66 boost::program_options::value<unsigned int>(),
67 "Number of threads to use in job (0 is use all CPUs)")(
69 boost::program_options::value<unsigned int>(),
70 "Size of stack in KB to use for extra threads (0 is use system default size)")(
kStrictOpt,
"strict parsing")(
71 kCmdCommandOpt, boost::program_options::value<std::string>(),
"config passed in as string (cannot be used with config_file)");
81 boost::program_options::options_description hidden(
"hidden options");
82 hidden.add_options()(
"fwk",
"For use only by Framework Developers")(
83 kParameterSetOpt, boost::program_options::value<std::string>(),
"configuration file")(
86 "options at the end to be passed to python");
static const char *const kEnableJobreportCommandOpt
boost::program_options::options_description desc_
static const char *const kJobModeCommandOpt
static const char *const kStrictOpt
boost::program_options::positional_options_description pos_options_
static const char *const kParameterSetOpt
static const char *const kHelpCommandOpt
static const char *const kCmdCommandOpt
static const char *const kSizeOfStackForThreadCommandOpt
boost::program_options::options_description all_options_
static const char *const kPythonOpt
static const char *const kJobreportCommandOpt
static const char *const kNumberOfThreadsCommandOpt
◆ getExit()
static int edm::CmsRunParser::getExit |
( |
const MapOrExit & |
output | ) |
|
|
inlinestatic |
◆ getVM()
static boost::program_options::variables_map edm::CmsRunParser::getVM |
( |
const MapOrExit & |
output | ) |
|
|
inlinestatic |
◆ hasExit()
static bool edm::CmsRunParser::hasExit |
( |
const MapOrExit & |
output | ) |
|
|
inlinestatic |
◆ hasVM()
static bool edm::CmsRunParser::hasVM |
( |
const MapOrExit & |
output | ) |
|
|
inlinestatic |
◆ parse()
Definition at line 90 of file CmsRunParser.cc.
References all_options_, dir2webdir::argc, GCPpyPlots::argv, edm::errors::CommandLineProcessing, gather_cfg::cout, desc_, relativeConstraints::error, edm::HaltMessageLogging(), kHelpOpt, kPythonOpt, kPythonOptDefault, AlcaSiPixelAliHarvester0T_cff::options, pos_options_, and writedatasetfile::run.
91 boost::program_options::variables_map vm;
93 store(boost::program_options::command_line_parser(
argc,
argv)
94 .extra_style_parser(final_opts_parser)
102 <<
"cmsRun: Error while trying to process command line arguments:\n" 103 << iException.what() <<
"\nFor usage and an options list, please do 'cmsRun --help'.";
115 const auto& pythonOptValues = vm[
kPythonOpt].as<std::vector<std::string>>();
boost::program_options::options_description desc_
void HaltMessageLogging()
boost::program_options::positional_options_description pos_options_
static const char *const kHelpOpt
std::variant< boost::program_options::variables_map, int > MapOrExit
boost::program_options::options_description all_options_
static const char *const kPythonOpt
Log< level::System, true > LogAbsolute
static const char *const kPythonOptDefault
◆ all_options_
boost::program_options::options_description edm::CmsRunParser::all_options_ |
|
private |
◆ desc_
boost::program_options::options_description edm::CmsRunParser::desc_ |
|
private |
◆ kCmdCommandOpt
const char* const edm::CmsRunParser::kCmdCommandOpt = "command,c" |
|
inlinestatic |
◆ kCmdOpt
const char* const edm::CmsRunParser::kCmdOpt = "command" |
|
inlinestatic |
◆ kEnableJobreportCommandOpt
const char* const edm::CmsRunParser::kEnableJobreportCommandOpt = "enablejobreport,e" |
|
inlinestatic |
◆ kEnableJobreportOpt
const char* const edm::CmsRunParser::kEnableJobreportOpt = "enablejobreport" |
|
inlinestatic |
◆ kHelpCommandOpt
const char* const edm::CmsRunParser::kHelpCommandOpt = "help,h" |
|
inlinestatic |
◆ kHelpOpt
const char* const edm::CmsRunParser::kHelpOpt = "help" |
|
inlinestatic |
◆ kJobModeCommandOpt
const char* const edm::CmsRunParser::kJobModeCommandOpt = "mode,m" |
|
inlinestatic |
◆ kJobModeOpt
const char* const edm::CmsRunParser::kJobModeOpt = "mode" |
|
inlinestatic |
◆ kJobreportCommandOpt
const char* const edm::CmsRunParser::kJobreportCommandOpt = "jobreport,j" |
|
inlinestatic |
◆ kJobreportOpt
const char* const edm::CmsRunParser::kJobreportOpt = "jobreport" |
|
inlinestatic |
◆ kNumberOfThreadsCommandOpt
const char* const edm::CmsRunParser::kNumberOfThreadsCommandOpt = "numThreads,n" |
|
inlinestatic |
◆ kNumberOfThreadsOpt
const char* const edm::CmsRunParser::kNumberOfThreadsOpt = "numThreads" |
|
inlinestatic |
◆ kParameterSetOpt
const char* const edm::CmsRunParser::kParameterSetOpt = "parameter-set" |
|
inlinestatic |
◆ kPythonOpt
const char* const edm::CmsRunParser::kPythonOpt = "pythonOptions" |
|
inlinestatic |
◆ kPythonOptDefault
const char* const edm::CmsRunParser::kPythonOptDefault = "CMSRUN_PYTHONOPT_DEFAULT" |
|
inlinestatic |
◆ kSizeOfStackForThreadCommandOpt
const char* const edm::CmsRunParser::kSizeOfStackForThreadCommandOpt = "sizeOfStackForThreadsInKB,s" |
|
inlinestatic |
◆ kSizeOfStackForThreadOpt
const char* const edm::CmsRunParser::kSizeOfStackForThreadOpt = "sizeOfStackForThreadsInKB" |
|
inlinestatic |
◆ kStrictOpt
const char* const edm::CmsRunParser::kStrictOpt = "strict" |
|
inlinestatic |
◆ pos_options_
boost::program_options::positional_options_description edm::CmsRunParser::pos_options_ |
|
private |