Add version command line option

This commit is contained in:
Stig-Ørjan Smelror 2024-01-28 19:33:09 +01:00
parent dc78e278a7
commit f1553f2983

7
qsgen2
View File

@ -74,6 +74,13 @@ if (${debug}); then
# exit # exit
fi fi
if [[ ${1} == "version" ]] || [[ ${1} == "-v" ]] || [[ ${1} == "--version" ]]; then
echo "${purple}${QSGEN} ${VERSION}${end}"
echo "${yellow}- Created by kekePower - 2018-2024${end}"
echo "${yellow}- https://github.com/kekePower/qsgen2/${end}"
exit
fi
if [[ ${1} == "help" ]]; then if [[ ${1} == "help" ]]; then
echo "${yellow}${QSGEN} ${VERSION}${end}" echo "${yellow}${QSGEN} ${VERSION}${end}"
echo "This is where I'll write the Help documentation." echo "This is where I'll write the Help documentation."