From af0ef0110ff88b96d8b12672bfd35dfc0bd5b0aa Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 14 Nov 2015 15:27:28 +0100 Subject: alow more -v's on the command-line --- voctogui/lib/args.py | 2 +- voctogui/voctogui.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'voctogui') diff --git a/voctogui/lib/args.py b/voctogui/lib/args.py index 3a9032f..6a34a6b 100644 --- a/voctogui/lib/args.py +++ b/voctogui/lib/args.py @@ -4,7 +4,7 @@ import argparse __all__ = ['Args'] parser = argparse.ArgumentParser(description='Voctogui') -parser.add_argument('-v', '--verbose', action='count', +parser.add_argument('-v', '--verbose', action='count', default=0, help="Also print INFO and DEBUG messages.") parser.add_argument('-c', '--color', action='store', choices=['auto', 'always', 'never'], default='auto', diff --git a/voctogui/voctogui.py b/voctogui/voctogui.py index d37e168..fa81d1c 100755 --- a/voctogui/voctogui.py +++ b/voctogui/voctogui.py @@ -82,7 +82,7 @@ def main(): # configure logging docolor = (Args.color == 'always') or (Args.color == 'auto' and sys.stderr.isatty()) - if Args.verbose == 2: + if Args.verbose >= 2: level = logging.DEBUG elif Args.verbose == 1: level = logging.INFO -- cgit v1.2.3