aboutsummaryrefslogtreecommitdiffstats
path: root/src/blimp/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/blimp/cli.py')
-rw-r--r--src/blimp/cli.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/blimp/cli.py b/src/blimp/cli.py
new file mode 100644
index 0000000..b462918
--- /dev/null
+++ b/src/blimp/cli.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
+import argparse
+
+from .main import BlacklistImporter
+
+
+def cli():
+ parser = argparse.ArgumentParser()
+ parser.add_argument("-out", "--outfile", help="set path to output file", action="store", default=None)
+ parser.add_argument("-dr", "--dry-run", help="perform a dry run", action="store_true", default=False)
+ args = parser.parse_args()
+
+ # run
+ BlacklistImporter(args).main()