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 9c5c6cd..36c16fb 100644
--- a/gemato/cli.py
+++ b/gemato/cli.py
@@ -75,6 +75,10 @@ class GematoCommand:
Process command-line arguments @args. @argp is the argparse
instance provided for error reporting.
"""
+ # allow an easy override for users when gemato is called
+ # via scripts
+ if os.environ.get("GEMATO_DEBUG"):
+ args.log_level = logging.DEBUG
logging.getLogger().setLevel(args.log_level)
def __call__(self):