Inform the user which command was not recognized

This commit is contained in:
Ben Peddell 2015-07-20 17:11:17 +10:00
parent b52770f236
commit 2e65228607

View File

@ -652,7 +652,12 @@ while true; do
exit 1
;;
*)
echo "arkmanager v${arkstVersion}: no command specified"
echo -n "arkmanager v${arkstVersion}: "
if [ $# -eq 0 ]; then
echo "no command specified"
else
echo "unknown command '$1' specified"
fi
echo "Try 'arkmanager -h' or 'arkmanager --help' for more information."
exit 1
;;