From e83b9f1567ae1c3973ea409dd2914ddb059e263f Mon Sep 17 00:00:00 2001 From: Lucas Possatti Date: Wed, 24 Jun 2015 21:01:29 -0300 Subject: [PATCH] Warn the user when an unknown option is provided --- pokemonsay.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pokemonsay.sh b/pokemonsay.sh index 61c72ad..94c6e50 100755 --- a/pokemonsay.sh +++ b/pokemonsay.sh @@ -84,6 +84,11 @@ case $key in -h|--help) usage ;; + -*) + echo + echo " Unknown option '$1'" + usage + ;; *) # Append this word to the message. if [ -n "$MESSAGE" ]; then