]> git.ipfire.org Git - network.git/commitdiff
network: Only jump to help if the --help parameter is the next parameter.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Jun 2010 17:52:32 +0000 (19:52 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Jun 2010 17:52:32 +0000 (19:52 +0200)
functions.cli

index b5112dfd6ddce04e8fbe527a5409a472d5ea8a18..5a22a54449275347f6cf60d6529e6130edf34046 100644 (file)
@@ -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