GROUP.add_argument(
'--config_allow_dynamic_updates',
default=False,
+ action='store_true',
help='If enabled, allow config flags with the string "dynamic" in their names to change at runtime when a new Zookeeper based configuration is created. See the --config_savefile help message for more information about this option.',
)
GROUP.add_argument(
return CONFIG.parse(entry_module)
+def error(message: str, exit_code: int = 1) -> None:
+ """
+ Convenience method for indicating a configuration error.
+ """
+ logging.error(message)
+ print(message, file=sys.stderr)
+ sys.exit(exit_code)
+
+
def has_been_parsed() -> bool:
"""Returns True iff the global config has already been parsed"""
return CONFIG.has_been_parsed()