Skip to content

Commit

Permalink
[201811][config] Add '-h' and '-?' as help options to unify with show…
Browse files Browse the repository at this point in the history
…/sonic-clear cmds (#654)
  • Loading branch information
jleveque authored and yxieca committed Sep 19, 2019
1 parent 2ee916c commit a06bee7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a06bee7

Please sign in to comment.