mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 05:00:45 +00:00
PT-115 Made OptionParser to accept repeatable DSN parameters
This commit is contained in:
@@ -1406,7 +1406,11 @@ sub _validate_type {
|
||||
}
|
||||
}
|
||||
my $defaults = $self->{DSNParser}->parse_options($self);
|
||||
$opt->{value} = $self->{DSNParser}->parse($val, $prev, $defaults);
|
||||
if (!$opt->{attributes}->{repeatable}) {
|
||||
$opt->{value} = $self->{DSNParser}->parse($val, $prev, $defaults);
|
||||
} else {
|
||||
push @{$opt->{value}}, $self->{DSNParser}->parse($val, $prev, $defaults);
|
||||
}
|
||||
}
|
||||
elsif ( $val && $opt->{type} eq 'z' ) { # type size
|
||||
PTDEBUG && _d('Parsing option', $opt->{long}, 'as a size value');
|
||||
|
Reference in New Issue
Block a user