Align CLI generator with changes in string type handling

There was some duplicated logic here.
This commit is contained in:
Sebastian Thiel
2019-07-05 18:39:18 +08:00
parent aceb717ead
commit 5b370e4190
3 changed files with 2 additions and 4 deletions

View File

@@ -278,7 +278,7 @@ impl<'n> Engine<'n> {
let (key, value) = parse_kv_arg(&*parg, err, false);
match key {
"timed-count-duration" => {
call = call.timed_count_duration(arg_from_str(value.unwrap_or("-0"), err, "timed-count-duration", "int64"));
call = call.timed_count_duration(value.unwrap_or(""));
},
"time-range-period" => {
call = call.time_range_period(value.unwrap_or(""));