mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-02-10 15:29:47 +01:00
Implemented palette preview.
This commit is contained in:
parent
d49caeebfb
commit
f55d00920d
@ -56,6 +56,9 @@ def get_args():
|
|||||||
arg.add_argument("--saturate", metavar="0.0-1.0",
|
arg.add_argument("--saturate", metavar="0.0-1.0",
|
||||||
help="Set the color saturation.")
|
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",
|
arg.add_argument("-c", action="store_true",
|
||||||
help="Delete all cached colorschemes.")
|
help="Delete all cached colorschemes.")
|
||||||
|
|
||||||
@ -110,6 +113,11 @@ def parse_args_exit(parser):
|
|||||||
if args.v:
|
if args.v:
|
||||||
parser.exit(0, "wal %s\n" % __version__)
|
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:
|
if args.i and args.theme:
|
||||||
parser.error("Conflicting arguments -i and -f.")
|
parser.error("Conflicting arguments -i and -f.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user