@@ -131,7 +131,7 @@ class TClientCommandSchemaExec : public TClientCommandBase {
131
131
virtual void Config (TConfig& config) override {
132
132
TClientCommand::Config (config);
133
133
ReturnTxId = false ;
134
- config.Opts ->AddLongOption (' t' , " txid" , " Print TxId" ).NoArgument (). SetFlag (&ReturnTxId);
134
+ config.Opts ->AddLongOption (' t' , " txid" , " Print TxId" ).StoreTrue (&ReturnTxId);
135
135
config.SetFreeArgsNum (1 );
136
136
SetFreeArgTitle (0 , " <SCHEMA-PROTO>" , " Schema protobuf or file with schema protobuf" );
137
137
}
@@ -205,14 +205,14 @@ class TClientCommandSchemaDescribe : public TClientCommand {
205
205
Boundaries = false ;
206
206
config.SetFreeArgsNum (1 );
207
207
SetFreeArgTitle (0 , " <PATH>" , " Schema path or pathId (e.g. 72075186232623600/1225)" );
208
- config.Opts ->AddLongOption (' t' , " tree" , " Show schema path tree" ).NoArgument (). SetFlag (&Tree);
209
- config.Opts ->AddLongOption (' d' , " details" , " Show detailed information (like columns in a table)" ).NoArgument (). SetFlag (&Details);
210
- config.Opts ->AddLongOption (' a' , " acl" , " Show owner and acl information" ).NoArgument (). SetFlag (&AccessRights);
211
- config.Opts ->AddLongOption (' e' , " effacl" , " Show effective acl information" ).NoArgument (). SetFlag (&AccessRightsEffective);
212
- config.Opts ->AddLongOption (' b' , " backup" , " Show backup information" ).NoArgument (). SetFlag (&BackupInfo);
213
- config.Opts ->AddLongOption (' P' , " protobuf" , " Debug print all info as is" ).NoArgument (). SetFlag (&Protobuf);
214
- config.Opts ->AddLongOption (' s' , " stats" , " Return partition stats" ).NoArgument (). SetFlag (&PartitionStats);
215
- config.Opts ->AddLongOption (" boundaries" , " Return boundaries" ).NoArgument (). SetFlag (&Boundaries);
208
+ config.Opts ->AddLongOption (' t' , " tree" , " Show schema path tree" ).StoreTrue (&Tree);
209
+ config.Opts ->AddLongOption (' d' , " details" , " Show detailed information (like columns in a table)" ).StoreTrue (&Details);
210
+ config.Opts ->AddLongOption (' a' , " acl" , " Show owner and acl information" ).StoreTrue (&AccessRights);
211
+ config.Opts ->AddLongOption (' e' , " effacl" , " Show effective acl information" ).StoreTrue (&AccessRightsEffective);
212
+ config.Opts ->AddLongOption (' b' , " backup" , " Show backup information" ).StoreTrue (&BackupInfo);
213
+ config.Opts ->AddLongOption (' P' , " protobuf" , " Debug print all info as is" ).StoreTrue (&Protobuf);
214
+ config.Opts ->AddLongOption (' s' , " stats" , " Return partition stats" ).StoreTrue (&PartitionStats);
215
+ config.Opts ->AddLongOption (" boundaries" , " Return boundaries" ).StoreTrue (&Boundaries);
216
216
}
217
217
218
218
virtual void Parse (TConfig& config) override {
@@ -581,8 +581,8 @@ class TClientCommandSchemaChown : public TClientCommand {
581
581
SetFreeArgTitle (0 , " <USER>" , " User" );
582
582
SetFreeArgTitle (1 , " <PATH>" , " Full pathname of an object (e.g. /ru/home/user/mydb/test1/test2).\n "
583
583
" Or short pathname if profile path is set (e.g. test1/test2)." );
584
- config.Opts ->AddLongOption (' R' , " recursive" , " Change owner on schema objects recursively" ).NoArgument (). SetFlag (&Recursive);
585
- config.Opts ->AddLongOption (' v' , " verbose" , " Verbose output" ).NoArgument (). SetFlag (&Verbose);
584
+ config.Opts ->AddLongOption (' R' , " recursive" , " Change owner on schema objects recursively" ).StoreTrue (&Recursive);
585
+ config.Opts ->AddLongOption (' v' , " verbose" , " Verbose output" ).StoreTrue (&Verbose);
586
586
}
587
587
588
588
TString Owner;
@@ -1318,7 +1318,7 @@ class TClientCommandDbExec : public TClientCommandBase {
1318
1318
config.SetFreeArgsNum (1 , 2 );
1319
1319
SetFreeArgTitle (0 , " <MINIKQL>" , " Text MiniKQL" );
1320
1320
SetFreeArgTitle (1 , " <PARAMS>" , " Text MiniKQL parameters" );
1321
- config.Opts ->AddLongOption (' p' , " proto" , " MiniKQL parameters are in protobuf format" ).NoArgument (). SetFlag (&Proto);
1321
+ config.Opts ->AddLongOption (' p' , " proto" , " MiniKQL parameters are in protobuf format" ).StoreTrue (&Proto);
1322
1322
}
1323
1323
1324
1324
virtual void Parse (TConfig& config) override {
0 commit comments