diff options
author | pnv1 <pnv@ydb.tech> | 2023-05-23 12:18:20 +0300 |
---|---|---|
committer | pnv1 <pnv@ydb.tech> | 2023-05-23 12:18:20 +0300 |
commit | 5a77eba6690e1251bd69f5790d9d6caffdd87543 (patch) | |
tree | 346e6c9ca5bf1654a18112b81db6e717e95949ed | |
parent | 5dce6a0c3ca260e259ac29941e7ce86a07467156 (diff) | |
download | ydb-5a77eba6690e1251bd69f5790d9d6caffdd87543.tar.gz |
Change YDB CLI version text and --help description
-rw-r--r-- | ydb/apps/ydb/commands/ydb_version.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ydb/apps/ydb/commands/ydb_version.cpp b/ydb/apps/ydb/commands/ydb_version.cpp index 5f5e638dd0..535b4b5ef7 100644 --- a/ydb/apps/ydb/commands/ydb_version.cpp +++ b/ydb/apps/ydb/commands/ydb_version.cpp @@ -8,7 +8,7 @@ namespace NYdb::NConsoleClient { TCommandVersion::TCommandVersion() - : TClientCommand("version", {}, "Print Yandex.Cloud YDB CLI version") + : TClientCommand("version", {}, "Print YDB CLI version") {} void TCommandVersion::Config(TConfig& config) { @@ -33,12 +33,12 @@ void TCommandVersion::Config(TConfig& config) { config.Opts->MutuallyExclusive("enable-checks", "semantic"); config.Opts->MutuallyExclusive("enable-checks", "check"); config.Opts->MutuallyExclusive("check", "semantic"); -}
-
-void TCommandVersion::Parse(TConfig& config) {
- TClientCommand::Parse(config);
-
- config.NeedToCheckForUpdate = !DisableChecks && !EnableChecks;
+} + +void TCommandVersion::Parse(TConfig& config) { + TClientCommand::Parse(config); + + config.NeedToCheckForUpdate = !DisableChecks && !EnableChecks; } int TCommandVersion::Run(TConfig& config) { @@ -57,7 +57,7 @@ int TCommandVersion::Run(TConfig& config) { return EXIT_SUCCESS; } if (!Semantic) { - Cout << "Yandex.Cloud YDB CLI "; + Cout << "YDB CLI "; } Cout << StripString(NResource::Find(TStringBuf(VersionResourceName))) << Endl; return EXIT_SUCCESS; |