From: Michael Tremer Date: Sun, 4 Nov 2012 22:23:00 +0000 (+0000) Subject: firewall: Stop for unrecognized command line arguments. X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fnetwork.git;a=commitdiff_plain;h=b4fc59c7cf3d32c033ea5796fc6e5609ad87a9f5 firewall: Stop for unrecognized command line arguments. --- diff --git a/functions.firewall b/functions.firewall index ce42e0f3..a55ea9a5 100644 --- a/functions.firewall +++ b/functions.firewall @@ -30,6 +30,10 @@ function firewall_start() { --test) test="true" ;; + *) + error "Unrecognized argument: ${1}" + return ${EXIT_ERROR} + ;; esac shift done