From: Michael Tremer Date: Fri, 18 Jun 2010 17:52:32 +0000 (+0200) Subject: network: Only jump to help if the --help parameter is the next parameter. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79fcf0f2c27be613db1e4a75e3842df5e9ad3c30;p=ipfire-3.x.git network: Only jump to help if the --help parameter is the next parameter. --- diff --git a/pkgs/core/network/src/functions.cli b/pkgs/core/network/src/functions.cli index b5112dfd6..5a22a5444 100644 --- a/pkgs/core/network/src/functions.cli +++ b/pkgs/core/network/src/functions.cli @@ -250,7 +250,7 @@ function cli_status() { function cli_help_requested() { local argument - for argument in $@; do + for argument in ${1}; do if [ "${argument}" = "help" -o "${argument}" = "-h" -o "${argument}" = "--help" ]; then return ${EXIT_OK} fi