From ba3218be2f72b6ce14924ac53825744ae6c8aa22 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 17 Oct 2018 15:29:18 +1100 Subject: [PATCH] general: allow -o to be repeated. --- pywal/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pywal/__main__.py b/pywal/__main__.py index d31af89..2ace13c 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -74,7 +74,7 @@ def get_args(): arg.add_argument("-n", action="store_true", 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\".") arg.add_argument("-q", action="store_true", @@ -188,7 +188,8 @@ def parse_args(parser): reload.env(tty_reload=not args.t) if args.o: - util.disown([args.o]) + for cmd in args.o: + util.disown([cmd]) if not args.e: reload.oomox(args.g)