From fe688aa499f078d3eb2d8256dc587d2d2110a7bf Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 3 Jun 2010 22:57:52 +0200 Subject: [PATCH] network: Add help texts for config command. --- functions.cli | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/functions.cli b/functions.cli index 43f60b37..21241512 100644 --- a/functions.cli +++ b/functions.cli @@ -20,6 +20,11 @@ ############################################################################### function cli_config() { + if cli_help_requested $@; then + cli_usage root-config + exit ${EXIT_OK} + fi + if [ -n "${1}" ]; then network_config_set $@ else @@ -227,6 +232,18 @@ function cli_usage() { echo " zone - ..." echo ;; + root-config) + echo "${0}: ${what#root-} [KEY=VAL, ...]" + echo + echo " This command allows setting of global configuration parameters." + echo + echo " If no additional arguments are passed it will list the current configuration." + echo + echo " You can overwrite the settings like the following:" + echo + echo " ${0} ${what#root-} DEBUG=1 ..." + echo + ;; root-start|root-stop) echo "${0}: ${what#root-} [--local-only|--remote-only|--all|...]" echo -- 2.47.3