From 419e196cbb75da3f63f5e4ad996f65d12ccd945d Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Tue, 3 Sep 2019 10:42:19 +0200 Subject: [PATCH] build: Fix name of argument variable Adding --cmd to the task argument changed the name of the destination variable, and that broke the whole subcommand because 'cmd' is already used by the top-level parser. Fix this by setting dest explicitly. Signed-off-by: Jan Kiszka --- kas/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kas/build.py b/kas/build.py index 49d155c..c470bda 100644 --- a/kas/build.py +++ b/kas/build.py @@ -62,7 +62,7 @@ class Build: bld_psr.add_argument('--target', action='append', help='Select target to build') - bld_psr.add_argument('-c', '--cmd', '--task', + bld_psr.add_argument('-c', '--cmd', '--task', dest='task', help='Select which task should be executed') bld_psr.add_argument('--skip', help='Skip build steps',