From a06bee79644aaeac745d4061377604ee38d0031c Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Wed, 18 Sep 2019 18:18:39 -0700 Subject: [PATCH] [201811][config] Add '-h' and '-?' as help options to unify with show/sonic-clear cmds (#654) --- config/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/main.py b/config/main.py index 592d9b82e4..649d730f1e 100755 --- a/config/main.py +++ b/config/main.py @@ -17,6 +17,8 @@ import aaa import mlnx +CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help', '-?']) + SONIC_CFGGEN_PATH = '/usr/local/bin/sonic-cfggen' SYSLOG_IDENTIFIER = "config" @@ -351,7 +353,7 @@ def _restart_services(): raise # This is our main entrypoint - the main 'config' command -@click.group() +@click.group(context_settings=CONTEXT_SETTINGS) def config(): """SONiC command line - 'config' command""" if os.geteuid() != 0: