diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-03-31 09:30:10 +1100 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-03-31 09:30:10 +1100 |
| commit | 7d4eb6b075f1a6f080602ca4fadee7d6faf15678 (patch) | |
| tree | 1858f357140cbdaf832442dfaa9e1b7416206135 /pywal/__main__.py | |
| parent | 4066d082f12b0989f06b32efc86e8cff582b9a10 (diff) | |
backend: Add colorthief.py
Diffstat (limited to 'pywal/__main__.py')
| -rw-r--r-- | pywal/__main__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py index 430cde2..0aaef25 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -36,6 +36,10 @@ def get_args(args): arg.add_argument("-b", metavar="background", help="Custom background color to use.") + arg.add_argument("--backend", metavar="backend", + help="Which color backend to use.", + const="wal", type=str, nargs="?", default="wal") + arg.add_argument("-c", action="store_true", help="Delete all cached colorschemes.") @@ -120,7 +124,8 @@ def process_args(args): if args.i: image_file = image.get(args.i) - colors_plain = colors.generate(image_file, light=args.l) + colors_plain = colors.generate(img=image_file, light=args.l, + backend=args.backend) if args.f: colors_plain = colors.file(args.f) |
