cli: Move mutual exclusion of --quiet and --verbose to the parser level (#1271)

Close #1270
This commit is contained in:
Mr. Outis
2018-10-28 22:14:59 -06:00
committed by GitHub
parent 7865ddd128
commit 7ae97009fa
2 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -15,9 +15,10 @@ class CmdBase(object):
@staticmethod
def _set_loglevel(args):
if args.quiet and not args.verbose:
if args.quiet:
Logger.be_quiet()
elif not args.quiet and args.verbose:
elif args.verbose:
Logger.be_verbose()
def _find_root(self):