mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-21 08:41:00 +02:00
Args: Added -v to print version
This commit is contained in:
parent
7854b05170
commit
104f731239
10
wal
10
wal
@ -67,6 +67,9 @@ def get_args():
|
|||||||
help="Fix artifacts in VTE Terminals. \
|
help="Fix artifacts in VTE Terminals. \
|
||||||
(Termite, xfce4-terminal)")
|
(Termite, xfce4-terminal)")
|
||||||
|
|
||||||
|
arg.add_argument("-v", action="store_true",
|
||||||
|
help="Print \"wal\" version.")
|
||||||
|
|
||||||
return arg.parse_args()
|
return arg.parse_args()
|
||||||
|
|
||||||
|
|
||||||
@ -92,6 +95,11 @@ def process_args(args):
|
|||||||
if args.r:
|
if args.r:
|
||||||
reload_colors(args.t)
|
reload_colors(args.t)
|
||||||
|
|
||||||
|
# -v
|
||||||
|
if args.v:
|
||||||
|
print("wal %s" % (__version__))
|
||||||
|
exit(0)
|
||||||
|
|
||||||
# -i
|
# -i
|
||||||
if args.i:
|
if args.i:
|
||||||
image = str(get_image(args.i))
|
image = str(get_image(args.i))
|
||||||
@ -517,7 +525,7 @@ def reload_colors(vte):
|
|||||||
sequences = bytes(sequences, "utf-8").decode("unicode_escape")
|
sequences = bytes(sequences, "utf-8").decode("unicode_escape")
|
||||||
print(sequences, end="")
|
print(sequences, end="")
|
||||||
|
|
||||||
quit()
|
exit(0)
|
||||||
|
|
||||||
|
|
||||||
def save_file(colors, export_file):
|
def save_file(colors, export_file):
|
||||||
|
Loading…
Reference in New Issue
Block a user