mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-08-17 17:50:56 +02:00
general: allow -o to be repeated.
This commit is contained in:
@ -74,7 +74,7 @@ def get_args():
|
|||||||
arg.add_argument("-n", action="store_true",
|
arg.add_argument("-n", action="store_true",
|
||||||
help="Skip setting the wallpaper.")
|
help="Skip setting the wallpaper.")
|
||||||
|
|
||||||
arg.add_argument("-o", metavar="\"script_name\"",
|
arg.add_argument("-o", metavar="\"script_name\"", action="append",
|
||||||
help="External script to run after \"wal\".")
|
help="External script to run after \"wal\".")
|
||||||
|
|
||||||
arg.add_argument("-q", action="store_true",
|
arg.add_argument("-q", action="store_true",
|
||||||
@ -188,7 +188,8 @@ def parse_args(parser):
|
|||||||
reload.env(tty_reload=not args.t)
|
reload.env(tty_reload=not args.t)
|
||||||
|
|
||||||
if args.o:
|
if args.o:
|
||||||
util.disown([args.o])
|
for cmd in args.o:
|
||||||
|
util.disown([cmd])
|
||||||
|
|
||||||
if not args.e:
|
if not args.e:
|
||||||
reload.oomox(args.g)
|
reload.oomox(args.g)
|
||||||
|
Reference in New Issue
Block a user