mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
FairMQ: Move static and interactive control modes to plugin (3)
This commit is contained in:
committed by
Mohammad Al-Turany
parent
01327426c3
commit
7dcd09692c
@@ -51,6 +51,7 @@ Control::Control(const string name, const Plugin::Version version, const string
|
||||
}
|
||||
catch (PluginServices::DeviceControlError& e)
|
||||
{
|
||||
// If we are here, it means another plugin has taken control. That's fine, just print the exception message and do nothing else.
|
||||
LOG(DEBUG) << e.what();
|
||||
}
|
||||
}
|
||||
@@ -59,8 +60,7 @@ auto ControlPluginProgramOptions() -> Plugin::ProgOptions
|
||||
{
|
||||
auto pluginOptions = boost::program_options::options_description{"Control (builtin) Plugin"};
|
||||
pluginOptions.add_options()
|
||||
("ctrlmode", boost::program_options::value<string>(), "Control mode, 'static' or 'interactive'");
|
||||
// should rename to --control and remove control from device options ?
|
||||
("control", boost::program_options::value<string>()->default_value("interactive"), "Control mode, 'static' or 'interactive'");
|
||||
return pluginOptions;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user