add '-q/--quiet' option

This commit is contained in:
Mike Fährmann
2017-04-26 11:33:19 +02:00
parent 4b967fa189
commit 701c016b97
3 changed files with 28 additions and 15 deletions

View File

@@ -63,6 +63,8 @@ def main():
config.load(*args.yamlfiles, format="yaml", strict=True)
for key, value in args.options:
config.set(key, value)
if args.loglevel >= logging.ERROR:
config.set(("output", "mode"), "null")
if args.list_modules:
for module_name in extractor.modules: