From 597beb63800d34f38ad6ecb2f503442406f5e425 Mon Sep 17 00:00:00 2001
From: Hans Anderson <hans@hanscanderson.com>
Date: Mon, 24 Jun 2019 18:35:52 -0600
Subject: [PATCH] Fix default argument for tasknames

---
 sbysrc/sby.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sbysrc/sby.py b/sbysrc/sby.py
index af36c71..d82b7a3 100644
--- a/sbysrc/sby.py
+++ b/sbysrc/sby.py
@@ -41,6 +41,7 @@ parser.add_argument("-b", action="store_true", dest="backup",
 parser.add_argument("-t", action="store_true", dest="tmpdir",
         help="run in a temporary workdir (remove when finished)")
 parser.add_argument("-T", metavar="<taskname>", action="append", dest="tasknames",
+        default=list(),
         help="add taskname (useful when sby file is read from stdin, ignored if tasknames are given as positional arguments)")
 parser.add_argument("-E", action="store_true", dest="throw_err",
         help="throw an exception (incl stack trace) for most errors")