summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-10-01 16:51:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-10-01 16:51:21 +0000
commit511b93418213f9e33cfcef23d484798d9cbd6056 (patch)
tree6367384fd658705a5213249dcb20c1ae652da883
parent66177eb5ecfa264aa39e016df0e3ddf81c28836e (diff)
downloadabuild-511b93418213f9e33cfcef23d484798d9cbd6056.tar.bz2
abuild-511b93418213f9e33cfcef23d484798d9cbd6056.tar.xz
abuild: add -V for print abuild version
-rw-r--r--abuild.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index c11b4b0..a487481 100644
--- a/abuild.in
+++ b/abuild.in
@@ -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