1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Set the log level to ERROR when two or more quiet flags are passed

Fixes pypa/pip#2670
This commit is contained in:
Mihir Singh 2015-04-22 17:56:34 -05:00
parent 0ed87f61a5
commit 4b6bdf0210

View file

@ -109,7 +109,10 @@ class Command(object):
options, args = self.parse_args(args)
if options.quiet:
level = "WARNING"
if options.quiet == 1:
level = "WARNING"
else:
level = "ERROR"
elif options.verbose:
level = "DEBUG"
else: