From b4fc59c7cf3d32c033ea5796fc6e5609ad87a9f5 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 4 Nov 2012 22:23:00 +0000 Subject: [PATCH] firewall: Stop for unrecognized command line arguments. --- functions.firewall | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.3