mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Sort out a whole bunch of other things, including cleaning up the way the
verification source is handled.
This commit is contained in:
23
lib/flags.cc
23
lib/flags.cc
@@ -1,8 +1,10 @@
|
||||
#include "globals.h"
|
||||
#include "flags.h"
|
||||
#include "proto.h"
|
||||
#include "utils.h"
|
||||
#include "logger.h"
|
||||
#include "lib/globals.h"
|
||||
#include "lib/flags.h"
|
||||
#include "lib/proto.h"
|
||||
#include "lib/utils.h"
|
||||
#include "lib/logger.h"
|
||||
#include "lib/fluxsource/fluxsource.h"
|
||||
#include "lib/imagereader/imagereader.h"
|
||||
#include <google/protobuf/text_format.h>
|
||||
#include <regex>
|
||||
#include <fstream>
|
||||
@@ -192,6 +194,17 @@ std::vector<std::string> FlagGroup::parseFlagsWithFilenames(int argc,
|
||||
}
|
||||
}
|
||||
|
||||
/* Add any config contributed by the flux and image readers, plus overrides.
|
||||
*/
|
||||
|
||||
if (globalConfig().hasFluxSource())
|
||||
globalConfig()->MergeFrom(
|
||||
globalConfig().getFluxSource()->getExtraConfig());
|
||||
if (globalConfig().hasImageReader())
|
||||
globalConfig()->MergeFrom(
|
||||
globalConfig().getImageReader()->getExtraConfig());
|
||||
applyOverrides();
|
||||
|
||||
/* Then apply any default options in groups, likewise applying the
|
||||
* overrides. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user