From 76987b267e9acc362ebd7d947b77935f849aafa2 Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 17 Dec 2024 20:29:09 -0800 Subject: [PATCH] fixed None args/task-args bug in ``ia tasks`` --- internetarchive/cli/ia_tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internetarchive/cli/ia_tasks.py b/internetarchive/cli/ia_tasks.py index a6831fff..a7813f75 100644 --- a/internetarchive/cli/ia_tasks.py +++ b/internetarchive/cli/ia_tasks.py @@ -60,12 +60,14 @@ def setup(subparsers): parser.add_argument("-a", "--task-args", nargs="+", action=QueryStringAction, + default={}, metavar="KEY:VALUE", help="Args to submit to the Tasks API.") parser.add_argument("-d", "--data", nargs="+", action=PostDataAction, metavar="KEY:VALUE", + default={}, help="Additional data to send when submitting a task.") parser.add_argument("-r", "--reduced-priority", action="store_true",