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-Tag: 001~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b838f4bf7b9eb834fde114b552e9aee18eeb141;p=network.git network: Only jump to help if the --help parameter is the next parameter. --- diff --git a/functions.cli b/functions.cli index b5112dfd..5a22a544 100644 --- a/functions.cli +++ b/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