summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pro-archman.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pro-archman.sh b/src/pro-archman.sh
index 8996367..8df75f1 100644
--- a/src/pro-archman.sh
+++ b/src/pro-archman.sh
@@ -22,6 +22,8 @@
set -u
# Constant global variables
+PACKAGE_NAME='@@PACKAGE_NAME@@'
+PACKAGE_VERSION='@@PACKAGE_VERSION@@'
PKGLIBDIR='@@PKGLIBDIR@@'
PKGLIBCMDDIR='@@PKGLIBCMDDIR@@'
PKGLIBCMD='@@PKGLIBCMD@@'
@@ -123,7 +125,7 @@ get_options()
{
local opt=
- while getopts 'b:h' opt; do
+ while getopts 'b:hV' opt; do
case "${opt}" in
'b')
opt_base_dir="$(cd "${OPTARG}" && pwd)"
@@ -131,6 +133,9 @@ get_options()
'h')
opt_cmd='help'
;;
+ 'V')
+ opt_cmd='version'
+ ;;
esac
done