diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-03-31 10:51:23 +1100 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-03-31 10:51:23 +1100 |
| commit | 958426f167233374191feb64650b2f8aa9165e73 (patch) | |
| tree | 909bdfe67a00a3e75723b3f4ef393e73fb2c2fb5 /pywal/__main__.py | |
| parent | 37bc93cc0327e131c2640082a19ed3b18c3a5a21 (diff) | |
backend: cleanup
Diffstat (limited to 'pywal/__main__.py')
| -rw-r--r-- | pywal/__main__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py index 0aaef25..61dcc25 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -38,7 +38,7 @@ def get_args(args): arg.add_argument("--backend", metavar="backend", help="Which color backend to use.", - const="wal", type=str, nargs="?", default="wal") + const="list_backends", type=str, nargs="?", default="wal") arg.add_argument("-c", action="store_true", help="Delete all cached colorschemes.") @@ -106,6 +106,10 @@ def process_args(args): reload.colors() sys.exit(0) + if args.backend == "list_backends": + print("Available backends:", colors.list_backends()) + sys.exit(0) + if args.q: sys.stdout = sys.stderr = open(os.devnull, "w") |
