CLI2,Config: Add 'override' verbosity option

This allows for 'override' messages to be silenced without requiring
footnotes be completely disabled.

The 'override' verbosity implies 'footnotes'.
This commit is contained in:
Paul Fenwick
2017-11-24 01:47:39 -05:00
committed by Paul Beckingham
parent aefe16a6e2
commit ec31b93447
3 changed files with 10 additions and 6 deletions

View File

@@ -299,7 +299,9 @@ void CLI2::applyOverrides (int argc, const char** argv)
std::string name = raw.substr (3, sep - 3);
std::string value = raw.substr (sep + 1);
context.config.set (name, value);
context.footnote (format (STRING_PARSER_OVERRIDE_RC, name, value));
if (context.verbose("override"))
context.footnote (format (STRING_PARSER_OVERRIDE_RC, name, value));
}
}
}