From 98ab58f683676653e4e2f14663ac9b5be4c2ba52 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 3 Apr 2018 07:21:16 +1000 Subject: [PATCH] args: Fix bug where you couldn't use --backend. --- pywal/__main__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pywal/__main__.py b/pywal/__main__.py index 622798b..f6e8222 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -41,7 +41,7 @@ def get_args(): arg.add_argument("--backend", metavar="backend", help="Which color backend to use. \ Use 'wal --backend' to list backends.", - const="list_backends", type=str, nargs="?", default="wal") + const="list_backends", type=str, nargs="?") arg.add_argument("--theme", "-f", metavar="/path/to/file or theme_name", help="Which colorscheme file to use. \ @@ -104,9 +104,12 @@ def parse_args_exit(parser): if args.i and args.theme: parser.error("Conflicting arguments -i and -f.") - if not args.i and not args.theme and not args.R: + if not args.i and \ + not args.theme and \ + not args.R and \ + not args.backend: parser.error("No input specified.\n" - "--theme, -i or -R are required.") + "--backend, --theme, -i or -R are required.") if args.r: reload.colors()