Skip to content

Commit a7bf9f2

Browse files
committed
mutually_exclusive options
1 parent d059fcd commit a7bf9f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ydb/library/workload/log/log.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,9 @@ void TLogWorkloadParams::ConfigureOpts(NLastGetopt::TOpts& opts, const ECommandT
438438
"timestamp uniformly from specified interval. Presents as seconds since epoch. Once this option passed, 'date-from' "
439439
"should be passed as well. This option is mutually exclusive with 'timestamp_deviation'")
440440
.Optional().StoreResult(&TimestampDateTo);
441+
442+
opts.MutuallyExclusive("timestamp_deviation", "date-from");
443+
opts.MutuallyExclusive("timestamp_deviation", "date-to");
441444

442445
opts.AddLongOption("timestamp_subtract", "Value in seconds to subtract from timestamp. For each timestamp, this value in seconds is subtracted")
443446
.DefaultValue(0).StoreResult(&TimestampSubtract);

0 commit comments

Comments
 (0)