mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Fix regression in handling unregistered options
This commit is contained in:
@@ -120,8 +120,10 @@ void ProgOptions::ParseAll(const int argc, char const* const* argv, bool allowUn
|
||||
|
||||
po::command_line_parser parser(argc, argv);
|
||||
|
||||
parser.options(fAllOptions);
|
||||
|
||||
if (allowUnregistered) {
|
||||
parser.options(fAllOptions).allow_unregistered();
|
||||
parser.allow_unregistered();
|
||||
}
|
||||
|
||||
using namespace po::command_line_style;
|
||||
|
Reference in New Issue
Block a user