From f1553f29831f1729ab8d6b827a04322db2ce037f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sun, 28 Jan 2024 19:33:09 +0100 Subject: [PATCH] Add version command line option --- qsgen2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qsgen2 b/qsgen2 index b300b00..a1d9e9d 100755 --- a/qsgen2 +++ b/qsgen2 @@ -74,6 +74,13 @@ if (${debug}); then # exit 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 echo "${yellow}${QSGEN} ${VERSION}${end}" echo "This is where I'll write the Help documentation."