From: Michael Tremer Date: Fri, 18 Jun 2010 17:53:01 +0000 (+0200) Subject: network: Allow -h and --help to request help. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2564613bbf9cb09eec467adb8b38af50bb86a1d6;p=ipfire-3.x.git network: Allow -h and --help to request help. --- diff --git a/pkgs/core/network/src/network b/pkgs/core/network/src/network index 6787420b5..b1ed3b7bb 100755 --- a/pkgs/core/network/src/network +++ b/pkgs/core/network/src/network @@ -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