mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
FairMQProgOptions: initialize defaults in the constructor, not in ParseAll
This commit is contained in:
committed by
Mohammad Al-Turany
parent
778c8e16bb
commit
efdec0f6ba
@@ -30,6 +30,8 @@ FairMQProgOptions::FairMQProgOptions()
|
||||
, fChannelInfo()
|
||||
, fMQKeyMap()
|
||||
{
|
||||
InitOptionDescription();
|
||||
ParseDefaults(fCmdLineOptions);
|
||||
}
|
||||
|
||||
FairMQProgOptions::~FairMQProgOptions()
|
||||
@@ -50,8 +52,6 @@ int FairMQProgOptions::ParseAll(const vector<string>& cmdLineArgs, bool allowUnr
|
||||
|
||||
int FairMQProgOptions::ParseAll(const int argc, char const* const* argv, bool allowUnregistered)
|
||||
{
|
||||
InitOptionDescription();
|
||||
|
||||
if (FairProgOptions::ParseCmdLine(argc, argv, fCmdLineOptions, fVarMap, allowUnregistered))
|
||||
{
|
||||
// ParseCmdLine returns 0 if no immediate switches found.
|
||||
|
Reference in New Issue
Block a user