don't log for --commands or --options.

This commit is contained in:
Maximilian Hils 2018-02-22 00:20:34 +01:00 committed by GitHub
parent 2edaca9141
commit 4ce8d6ca37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,9 @@ def process_options(parser, opts, args):
if args.version:
print(debug.dump_system_info())
sys.exit(0)
if args.quiet:
if args.quiet or args.options or args.commands:
# also reduce log verbosity if --options or --commands is passed,
# we don't want log messages from regular startup then.
args.verbosity = 'error'
args.flow_detail = 0
if args.verbose: