]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
network: Allow -h and --help to request help.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Jun 2010 17:53:01 +0000 (19:53 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Jun 2010 17:53:01 +0000 (19:53 +0200)
pkgs/core/network/src/network

index 6787420b5eb7f98bac065f3d852f0fb472796e6e..b1ed3b7bbc2adb4df7e0edf2a281bd65707434f8 100755 (executable)
@@ -66,12 +66,14 @@ case "${action}" in
                cli_status $@
                ;;
 
-       ""|help)
+       ""|help|--help|-h)
                cli_usage root
                exit ${EXIT_OK}
                ;;
+
        *)
-               error "Invalid command given."
+               error "Invalid command given: ${action}"
                cli_usage usage
                exit ${EXIT_CONF_ERROR}
+               ;;
 esac