Add version command line option
This commit is contained in:
parent
dc78e278a7
commit
f1553f2983
7
qsgen2
7
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."
|
||||
|
Loading…
Reference in New Issue
Block a user