add recognisation of parametter -h, --help, -v, --version
This commit is contained in:
parent
2b68f90adb
commit
786088c97a
1 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue