From: Michael Tremer Date: Fri, 18 Jun 2010 17:53:01 +0000 (+0200) Subject: network: Allow -h and --help to request help. X-Git-Tag: 001~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe4555b58fb70320422bfd4581aedd4aede2984c;p=network.git network: Allow -h and --help to request help. --- diff --git a/network b/network index 6787420b..b1ed3b7b 100755 --- a/network +++ b/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