From 1da7af4073771ac3330e4b48ae1b4796d60a8281 Mon Sep 17 00:00:00 2001 From: ghooo Date: Tue, 11 Jan 2022 09:16:52 -0800 Subject: [PATCH] [GCU] Show default option for '--format' --- config/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/main.py b/config/main.py index 4e2ae68de6..68c0086617 100644 --- a/config/main.py +++ b/config/main.py @@ -1188,7 +1188,8 @@ def print_dry_run_message(dry_run): @click.argument('patch-file-path', type=str, required=True) @click.option('-f', '--format', type=click.Choice([e.name for e in ConfigFormat]), default=ConfigFormat.CONFIGDB.name, - help='format of config of the patch is either ConfigDb(ABNF) or SonicYang') + help='format of config of the patch is either ConfigDb(ABNF) or SonicYang', + show_default=True) @click.option('-d', '--dry-run', is_flag=True, default=False, help='test out the command without affecting config state') @click.option('-n', '--ignore-non-yang-tables', is_flag=True, default=False, help='ignore validation for tables without YANG models', hidden=True) @click.option('-i', '--ignore-path', multiple=True, help='ignore validation for config specified by given path which is a JsonPointer', hidden=True) @@ -1221,7 +1222,8 @@ def apply_patch(ctx, patch_file_path, format, dry_run, ignore_non_yang_tables, i @click.argument('target-file-path', type=str, required=True) @click.option('-f', '--format', type=click.Choice([e.name for e in ConfigFormat]), default=ConfigFormat.CONFIGDB.name, - help='format of target config is either ConfigDb(ABNF) or SonicYang') + help='format of target config is either ConfigDb(ABNF) or SonicYang', + show_default=True) @click.option('-d', '--dry-run', is_flag=True, default=False, help='test out the command without affecting config state') @click.option('-n', '--ignore-non-yang-tables', is_flag=True, default=False, help='ignore validation for tables without YANG models', hidden=True) @click.option('-i', '--ignore-path', multiple=True, help='ignore validation for config specified by given path which is a JsonPointer', hidden=True)