diff --git a/heavy_script.sh b/heavy_script.sh index 5ee2afcc..3c453ca6 100644 --- a/heavy_script.sh +++ b/heavy_script.sh @@ -48,10 +48,6 @@ do ;; esac ;; - \?) - echo -e "Invalid Option \"-$OPTARG\"\n" && help - exit - ;; # :) # echo -e "Option: \"-$OPTARG\" requires an argument\n" && help # exit @@ -92,6 +88,10 @@ do v) verbose="true" ;; + \?) + echo -e "Invalid Option \"-$OPTARG\"\n" && help + exit + ;; *) echo -e "Invalid Option \"-$OPTARG\"\n" && help exit