Add version command line option

This commit is contained in:
Stig-Ørjan Smelror 2024-01-28 19:34:30 +01:00
parent f1553f2983
commit 57254e5f93

5
qsgen2
View File

@ -67,15 +67,16 @@ function include () {
include common/colors include common/colors
echo "${magenta}${QSGEN} ${VERSION}${end}"
# Pre-release exit # Pre-release exit
if (${debug}); then if (${debug}); then
echo "${purple}${QSGEN} ${VERSION}${end}"
# echo "${red}Not yet ready. Exiting.${end}" # echo "${red}Not yet ready. Exiting.${end}"
# exit # exit
fi fi
if [[ ${1} == "version" ]] || [[ ${1} == "-v" ]] || [[ ${1} == "--version" ]]; then if [[ ${1} == "version" ]] || [[ ${1} == "-v" ]] || [[ ${1} == "--version" ]]; then
echo "${purple}${QSGEN} ${VERSION}${end}" # echo "${purple}${QSGEN} ${VERSION}${end}"
echo "${yellow}- Created by kekePower - 2018-2024${end}" echo "${yellow}- Created by kekePower - 2018-2024${end}"
echo "${yellow}- https://github.com/kekePower/qsgen2/${end}" echo "${yellow}- https://github.com/kekePower/qsgen2/${end}"
exit exit