mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
FairMQProgOptions: add a method to check key existence
This commit is contained in:
committed by
Mohammad Al-Turany
parent
4bc54ad32b
commit
a60fac80d9
@@ -25,7 +25,7 @@ template<typename TMQDevice>
|
||||
inline int runStateMachine(TMQDevice& device, FairMQProgOptions& cfg)
|
||||
{
|
||||
device.RegisterChannelEndpoints();
|
||||
if (cfg.GetValue<bool>("print-channels"))
|
||||
if (cfg.Count("print-channels"))
|
||||
{
|
||||
device.PrintRegisteredChannels();
|
||||
device.ChangeState(TMQDevice::END);
|
||||
|
Reference in New Issue
Block a user