diff options
author | pnv1 <pnv@ydb.tech> | 2022-09-16 22:47:59 +0300 |
---|---|---|
committer | pnv1 <pnv@ydb.tech> | 2022-09-16 22:47:59 +0300 |
commit | 6ec5a0ce79d9a08e0057f67387909d9325ccc582 (patch) | |
tree | fb8cb4420cef6ee79641ebf3f48d10d1e5105ae4 | |
parent | acd29eedcf99f811d7a2229a66bacdcce90a34c8 (diff) | |
download | ydb-6ec5a0ce79d9a08e0057f67387909d9325ccc582.tar.gz |
Add params usage examples to ydb yql --help-ex
-rw-r--r-- | ydb/public/lib/ydb_cli/commands/ydb_yql.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ydb/public/lib/ydb_cli/commands/ydb_yql.cpp b/ydb/public/lib/ydb_cli/commands/ydb_yql.cpp index 8ae31f970e7..71019621d28 100644 --- a/ydb/public/lib/ydb_cli/commands/ydb_yql.cpp +++ b/ydb/public/lib/ydb_cli/commands/ydb_yql.cpp @@ -14,6 +14,7 @@ TCommandYql::TCommandYql() void TCommandYql::Config(TConfig& config) { TYdbOperationCommand::Config(config); + AddExamplesOption(config); config.Opts->AddLongOption("stats", "Collect statistics mode [none, basic, full]") .RequiredArgument("[String]").StoreResult(&CollectStatsMode); config.Opts->AddLongOption('s', "script", "Text of script to execute").RequiredArgument("[String]").StoreResult(&Script); @@ -34,6 +35,8 @@ void TCommandYql::Config(TConfig& config) { EOutputFormat::JsonBase64Array }); + CheckExamples(config); + config.SetFreeArgsNum(0); } |