Skip to content
Snippets Groups Projects
Commit 310e43ea authored by Eva Schiffer's avatar Eva Schiffer
Browse files

adding warning when we are ignoring variables requested on the command line...

adding warning when we are ignoring variables requested on the command line because we have a config file
parent fd96b046
No related branches found
No related tags found
No related merge requests found
......@@ -1764,6 +1764,12 @@ def main():
# organize our command line options
tempOptions = config_organizer.convert_options_to_dict(options)
# if there are requested variables and a config file, warn the user that we're going to ignore their request
if len(variables) > 0 and tempOptions[OPTIONS_CONFIG_FILE_KEY] is not None :
LOG.warn("User requested specific variables (" + str(variables) + ") on the command line that will be "
"overridden by the requested configuration file. Requested variables from the command line will be ignored. "
"Please list your desired variables in your configuration file.")
# if we have one file path, do either one or many inspect reports
if len(files) <= 1 :
a_file_path = files[0]
......
......@@ -342,7 +342,7 @@ def _warn_for_stomped_commandline_options(optionSet) :
optionSet[option_key] is not None and
optionSet[option_key] != _STOMPABLE_OPTIONS[option_key] ) :
LOG.warn("User provided input for the option \"" + option_key + "\" on the command line that "
"will be overridden by the requested config file. "
"will be overridden by the requested configuration file. "
"This part of the command line input will be ignored.")
LOG.debug("User value for " + option_key + ": " + str(optionSet[option_key]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment