mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 07:18:27 +01:00
cli: Move mutual exclusion of --quiet and --verbose to the parser level (#1271)
Close #1270
This commit is contained in:
+3
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user