diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-04-03 07:21:16 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-04-03 07:21:16 +1000 |
| commit | 98ab58f683676653e4e2f14663ac9b5be4c2ba52 (patch) | |
| tree | 1355516b677fdde5a7e1441b3e45504ac26c597c | |
| parent | e82c98375baa32779c7eb51d22d1f3bd792187f2 (diff) | |
args: Fix bug where you couldn't use --backend.
| -rw-r--r-- | pywal/__main__.py | 9 |
1 files 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() |
