Warn the user when an unknown option is provided
This commit is contained in:
@@ -84,6 +84,11 @@ case $key in
|
|||||||
-h|--help)
|
-h|--help)
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
|
-*)
|
||||||
|
echo
|
||||||
|
echo " Unknown option '$1'"
|
||||||
|
usage
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# Append this word to the message.
|
# Append this word to the message.
|
||||||
if [ -n "$MESSAGE" ]; then
|
if [ -n "$MESSAGE" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user