abuild: add -V for print abuild version

This commit is contained in:
Natanael Copa 2019-10-01 16:51:21 +00:00
parent 66177eb5ec
commit 511b934182
1 changed files with 2 additions and 1 deletions

View File

@ -2493,7 +2493,7 @@ usage() {
APKBUILD="${APKBUILD:-./APKBUILD}"
unset force
while getopts ":AcdD:fFhkKmnP:qrRs:uv" opt; do
while getopts ":AcdD:fFhkKmnP:qrRs:uvV" opt; do
case $opt in
'A') echo "$CARCH"; exit 0;;
'c') enable_colors
@ -2513,6 +2513,7 @@ while getopts ":AcdD:fFhkKmnP:qrRs:uv" opt; do
'r') install_deps="-r";;
's') SRCDEST=$OPTARG;;
'v') set -x;;
'V') echo "$program $program_version"; exit 0;;
'?') die "Unrecognized option: $OPTARG";;
esac
done