From: Michael Tremer Date: Sun, 4 Nov 2012 22:23:00 +0000 (+0000) Subject: firewall: Stop for unrecognized command line arguments. X-Git-Tag: 006~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4fc59c7cf3d32c033ea5796fc6e5609ad87a9f5;p=network.git 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