Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[201811][config] Add '-h' and '-?' as help options to unify with show/sonic-clear cmds #654

Merged
merged 1 commit into from
Sep 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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