FairMQProgOptions: initialize defaults in the constructor, not in ParseAll

This commit is contained in:
Alexey Rybalchenko
2018-01-24 12:44:15 +01:00
committed by Mohammad Al-Turany
parent 778c8e16bb
commit efdec0f6ba
5 changed files with 19 additions and 6 deletions

View File

@@ -161,6 +161,7 @@ class FairProgOptions
// boost prog options parsers
int ParseCmdLine(const int argc, char const* const* argv, const po::options_description& desc, po::variables_map& varmap, bool allowUnregistered = false);
int ParseCmdLine(const int argc, char const* const* argv, const po::options_description& desc, bool allowUnregistered = false);
void ParseDefaults(const po::options_description& desc);
virtual int ParseAll(const int argc, char const* const* argv, bool allowUnregistered = false) = 0;// TODO change return type to bool and propagate to executable