build: Add -c and --cmd as aliases for --task

This aligns us with bitbake. Moreover, -c/--cmd is easier to tell apart
from --target. Keep --task for backward compatibility.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2019-08-31 12:27:49 +02:00
parent 08a1326825
commit 8558b566d9
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ while [ $# -gt 0 ]; do
trace docker run ${DOCKER_IMAGE} ${CMD} --help trace docker run ${DOCKER_IMAGE} ${CMD} --help
exit 0 exit 0
;; ;;
--skip|--target|--task|-c|--command) --skip|--target|--task|-c|--cmd|--command)
KAS_OPTIONS="${KAS_OPTIONS} $1 '$2'" KAS_OPTIONS="${KAS_OPTIONS} $1 '$2'"
shift 2 shift 2
;; ;;

View File

@ -62,7 +62,7 @@ class Build:
bld_psr.add_argument('--target', bld_psr.add_argument('--target',
action='append', action='append',
help='Select target to build') help='Select target to build')
bld_psr.add_argument('--task', bld_psr.add_argument('-c', '--cmd', '--task',
help='Select which task should be executed') help='Select which task should be executed')
bld_psr.add_argument('--skip', bld_psr.add_argument('--skip',
help='Skip build steps', help='Skip build steps',