summaryrefslogtreecommitdiff
path: root/archivist
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--archivist/cli.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archivist/cli.py b/archivist/cli.py
index 1c13952..5f1d8ba 100644
--- a/archivist/cli.py
+++ b/archivist/cli.py
@@ -1,4 +1,6 @@
import click
+import os
+
from functools import reduce
import operator as op
@@ -15,7 +17,7 @@ def enable_debug():
@click.group(context_settings = CONTEXT_SETTINGS)
@click.option('--debug', '-d', is_flag=True, default=False)
def cli(debug):
- if debug: enable_debug()
+ if debug or 'DEBUG' in os.environ: enable_debug()
@cli.group()
def db():