From 2be6d03efdce0f9b47e07e57379ddb105c0250a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Mej=C3=ADas=20Rodr=C3=ADguez?= Date: Sun, 25 Nov 2018 13:43:09 -0500 Subject: [PATCH] Add unexpected options handling --- psu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/psu b/psu index 0eb5ead..e89bae0 100755 --- a/psu +++ b/psu @@ -295,6 +295,10 @@ while getopts a:u:p:l:n:c:e:rsvdt option; do v) VERBOSE_MODE="true" ;; d) DEBUG_MODE="true" ;; t) STRICT_MODE="true" ;; + *) + err "Unexpected option ${option}" + exit 1 + ;; esac done