mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
bug-1635734 Fixed config param handler
This commit is contained in:
@@ -615,6 +615,13 @@ sub get_opts {
|
||||
$self->{errors} = [];
|
||||
|
||||
# --config is special-case; parse them manually and remove them from @ARGV
|
||||
if ( @ARGV && $ARGV[0] =~/^--config=/ ) {
|
||||
$ARGV[0] = substr($ARGV[0],9);
|
||||
# Clean '" independently because we need to match start/end with the same char ' or "
|
||||
$ARGV[0] =~ s/^'(.*)'$/$1/
|
||||
$ARGV[0] =~ s/^"(.*)"$/$1/;
|
||||
$self->_set_option('config', shift @ARGV);
|
||||
}
|
||||
if ( @ARGV && $ARGV[0] eq "--config" ) {
|
||||
shift @ARGV;
|
||||
$self->_set_option('config', shift @ARGV);
|
||||
|
Reference in New Issue
Block a user