add recognisation of parametter -h, --help, -v, --version

This commit is contained in:
primardj 2024-01-30 11:28:38 +00:00
parent 2b68f90adb
commit 786088c97a

View file

@ -10,4 +10,23 @@ PARAMETTER
"
for i in $@; do
case "$i" in
"-h" | "--help")
echo "$Usage_jaaj"
exit 0
;;
"-v" | "--version")
echo "$Version"
exit 0
;;
*)
echo "Error, arg $i not find."
echo "$Usage_jaaj"
exit 127
;;
esac
done
wlclock --layer bottom --position bottom-left --margin 0 0 82 185 --background-colour "#ffffff00" --border-colour "#00000000" --clock-colour "#00ffff" --hand-width 4