diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-04-03 12:06:41 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-04-03 12:06:41 +1000 |
| commit | 68e20cc90a1037bc4f4e16a79bb3add922c5711c (patch) | |
| tree | 3fe083da62e4c57e733c02caa64edf317f361216 /pywal/__main__.py | |
| parent | 59b4c5408608eee60e7273d3a5ed2ba15d489b1d (diff) | |
themes: Enhance listing.
Diffstat (limited to 'pywal/__main__.py')
| -rw-r--r-- | pywal/__main__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py index f6e8222..a06eab9 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -118,12 +118,13 @@ def parse_args_exit(parser): if args.theme == "list_themes": themes = [theme.name.replace(".json", "") for theme in theme.list_themes()] - print("Themes:", themes) - print("Extra: 'random' (select a random theme)") + print("\n - ".join(["\033[1;32mThemes\033[0m:", *sorted(themes)])) + print("\033[1;32mExtra\033[0m:\n - random (select a random theme)") sys.exit(0) if args.backend == "list_backends": - print("Backends:", colors.list_backends()) + print("\n - ".join(["\033[1;32mBackends\033[0m:", + *colors.list_backends()])) sys.exit(0) |
