aboutsummaryrefslogtreecommitdiffstats
path: root/src/blimp/cli.py
blob: b4629185a613b9f359984bb30ed3ae84493691c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()