Just small change

This commit is contained in:
Pavan Jadhaw 2017-12-31 22:11:51 +05:30
parent 13bdde37c0
commit cd33700ba2

View file

@ -70,38 +70,7 @@ rec_get_random() {
rec_get_random "$dir" rec_get_random "$dir"
} }
usage() {
# Options
case "$1" in
"")
if [ ! -f $l_dim ]; then
echo "Important : Update the image cache, Ex. betterlockscreen -u path/to/image.jpg"
echo
echo " Image cache must be updated to initially configure or update wallpaper used"
echo
echo "See also : For other set of options and help use help command."
echo "Ex. betterlockscreen -h or betterlockscreen --help"
echo
echo "See : https://github.com/pavanjadhaw/betterlockscreen for addition info..."
exit 1
else
echo
echo "Seems you havent provided any argument, see below for usage info"
echo
echo "See also : For other set of options and help use help command."
echo "Ex. betterlockscreen -h or betterlockscreen --help"
echo
echo "See : https://github.com/pavanjadhaw/betterlockscreen for addition info..."
echo
exit 1
fi
;;
-h | --help)
echo "Important : Update the image cache, Ex: betterlockscreen -g path/to/image.jpg" echo "Important : Update the image cache, Ex: betterlockscreen -g path/to/image.jpg"
echo " Image cache must be updated to initially configure or update wallpaper used" echo " Image cache must be updated to initially configure or update wallpaper used"
@ -161,6 +130,43 @@ case "$1" in
echo " Ex: betterlockscreen -u path/to/image.png -b 3" echo " Ex: betterlockscreen -u path/to/image.png -b 3"
echo " Ex: betterlockscreen -u path/to/image.png --blur 0.5" echo " Ex: betterlockscreen -u path/to/image.png --blur 0.5"
echo echo
}
# Options
case "$1" in
"")
if [ ! -f $l_dim ]; then
echo "Important : Update the image cache, Ex. betterlockscreen -u path/to/image.jpg"
echo
echo " Image cache must be updated to initially configure or update wallpaper used"
echo
echo "See also : For other set of options and help use help command."
echo "Ex. betterlockscreen -h or betterlockscreen --help"
echo
echo "See : https://github.com/pavanjadhaw/betterlockscreen for addition info..."
exit 1
else
echo
echo "Seems you havent provided any argument, see below for usage info"
echo
echo "See also : For other set of options and help use help command."
echo "Ex. betterlockscreen -h or betterlockscreen --help"
echo
echo "See : https://github.com/pavanjadhaw/betterlockscreen for addition info..."
echo
exit 1
fi
;;
-h | --help)
usage
;; ;;
-l | --lock) -l | --lock)