summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gemato/cli.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gemato/cli.py b/gemato/cli.py
index b85d9c4..0047a5d 100644
--- a/gemato/cli.py
+++ b/gemato/cli.py
@@ -61,6 +61,8 @@ class GematoCommand:
"""
subp.add_argument('--debug', action='store_true',
help='Enable debugging output')
+ subp.add_argument('-q', '--quiet', action='store_true',
+ help='Only emit warning or error messages')
def parse_args(self, args, argp):
"""
@@ -69,6 +71,8 @@ class GematoCommand:
"""
if args.debug:
logging.getLogger().setLevel(logging.DEBUG)
+ elif args.quiet:
+ logging.getLogger().setLevel(logging.WARNING)
def __call__(self):
"""