diff options
author | pnv1 <pnv1@yandex-team.ru> | 2022-02-23 02:41:54 +0300 |
---|---|---|
committer | pnv1 <pnv1@yandex-team.ru> | 2022-02-23 02:41:54 +0300 |
commit | a1029d010decab809280a9562a94177cca40095c (patch) | |
tree | 1b5c2e43d39ac5f0bb6811bb9d2cdf44cb22f617 | |
parent | b53dc20574c93ec29e05b108678480d541938755 (diff) | |
download | ydb-a1029d010decab809280a9562a94177cca40095c.tar.gz |
Add short option -p for --profile option, KIKIMR-14271
ref:cc2d2af250d6a370c1944e4d47b89caa07339a71
3 files changed, 3 insertions, 3 deletions
diff --git a/ydb/public/lib/ydb_cli/commands/ydb_root_common.cpp b/ydb/public/lib/ydb_cli/commands/ydb_root_common.cpp index 49710325cdd..d0616beef39 100644 --- a/ydb/public/lib/ydb_cli/commands/ydb_root_common.cpp +++ b/ydb/public/lib/ydb_cli/commands/ydb_root_common.cpp @@ -208,7 +208,7 @@ void TClientCommandRootCommon::Config(TConfig& config) { .DefaultValue(config.IamEndpoint); } - opts.AddLongOption("profile", "Profile name to use configuration parameters from.") + opts.AddLongOption('p', "profile", "Profile name to use configuration parameters from.") .RequiredArgument("NAME").StoreResult(&ProfileName); TStringStream stream; diff --git a/ydb/tests/functional/ydb_cli/canondata/test_ydb_scripting.TestScriptingServiceHelp.test_help/result.output b/ydb/tests/functional/ydb_cli/canondata/test_ydb_scripting.TestScriptingServiceHelp.test_help/result.output index 59efc0ae2f6..858828b7c3b 100644 --- a/ydb/tests/functional/ydb_cli/canondata/test_ydb_scripting.TestScriptingServiceHelp.test_help/result.output +++ b/ydb/tests/functional/ydb_cli/canondata/test_ydb_scripting.TestScriptingServiceHelp.test_help/result.output @@ -3,7 +3,7 @@ Usage: ydb [global options...] scripting yql [options...] Description: Execute YQL script Global options: - {-e|--endpoint}, {-d|--database}, {-v|--verbose}, --ca-file, --token-file, --user, --password-file, --no-password, --profile + {-e|--endpoint}, {-d|--database}, {-v|--verbose}, --ca-file, --token-file, --user, --password-file, --no-password, {-p|--profile} To get full description of these options run 'ydb --help'. Options: diff --git a/ydb/tests/functional/ydb_cli/canondata/test_ydb_scripting.TestScriptingServiceHelp.test_help_ex/result.output b/ydb/tests/functional/ydb_cli/canondata/test_ydb_scripting.TestScriptingServiceHelp.test_help_ex/result.output index 4e6dec2ae9f..22fe98f6f85 100644 --- a/ydb/tests/functional/ydb_cli/canondata/test_ydb_scripting.TestScriptingServiceHelp.test_help_ex/result.output +++ b/ydb/tests/functional/ydb_cli/canondata/test_ydb_scripting.TestScriptingServiceHelp.test_help_ex/result.output @@ -3,7 +3,7 @@ Usage: ydb [global options...] scripting yql [options...] Description: Execute YQL script Global options: - {-e|--endpoint}, {-d|--database}, {-v|--verbose}, --ca-file, --token-file, --user, --password-file, --no-password, --profile + {-e|--endpoint}, {-d|--database}, {-v|--verbose}, --ca-file, --token-file, --user, --password-file, --no-password, {-p|--profile} To get full description of these options run 'ydb --help'. Options: |