diff options
| author | Dylan Araps <[email protected]> | 2018-06-26 07:32:08 +1000 |
|---|---|---|
| committer | Dylan Araps <[email protected]> | 2018-06-26 07:32:08 +1000 |
| commit | f0480c26a8770c37878b7f04b36058170ea7c22d (patch) | |
| tree | 7b541ca2d834b4d487d8fafdc726d96927184bbe | |
| parent | colors: Revert palette changes. Fixes #266 (diff) | |
| parent | Merge pull request #268 from D-Vaillant/master (diff) | |
| download | pywal-f0480c26a8770c37878b7f04b36058170ea7c22d.tar.xz pywal-f0480c26a8770c37878b7f04b36058170ea7c22d.zip | |
Merge branch 'master' of github.com:dylanaraps/pywal
| -rw-r--r-- | pywal/__main__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py index edaa1c2..b3812b4 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -56,6 +56,9 @@ def get_args(): arg.add_argument("--saturate", metavar="0.0-1.0", help="Set the color saturation.") + arg.add_argument("--preview", action="store_true", + help="Print the current color palette.") + arg.add_argument("-c", action="store_true", help="Delete all cached colorschemes.") @@ -110,6 +113,11 @@ def parse_args_exit(parser): if args.v: parser.exit(0, "wal %s\n" % __version__) + if args.preview: + print("Current colorscheme:", sep='') + colors.palette() + sys.exit(0) + if args.i and args.theme: parser.error("Conflicting arguments -i and -f.") |