syntax changes

This commit is contained in:
lelgenio 2020-11-19 19:06:45 -03:00
parent 79322bbe66
commit 7d0a850d71
1 changed files with 13 additions and 12 deletions

View File

@ -36,18 +36,19 @@ delete(){
} }
usage(){ usage(){
cmdname=$(basename "$0")
echo "Commands: " echo "Commands: "
echo " $0 search -- searches the current playlist for songs and plays it" echo " $cmdname search -- Searches the current playlist for songs and plays it."
echo " $0 delete -- prompts to delete the current song" echo " $cmdname delete -- Prompts to delete the current song."
} }
if [ "$1" = "delete" ] case "$1" in
then delete)
delete delete ;;
elif [ "$1" = "search" ] search)
then search ;;
search *)
else usage
usage search
search ;;
fi esac