mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
--version returned exit status 1
This commit is contained in:
@@ -651,11 +651,12 @@ sub get_opts {
|
||||
if ( exists $self->{opts}->{version} && $self->{opts}->{version}->{got} ) {
|
||||
if ( $self->{version} ) {
|
||||
print $self->{version}, "\n";
|
||||
exit 0;
|
||||
}
|
||||
else {
|
||||
print "Error parsing version. See the VERSION section of the tool's documentation.\n";
|
||||
exit 1;
|
||||
}
|
||||
exit 1;
|
||||
}
|
||||
|
||||
if ( @ARGV && $self->{strict} ) {
|
||||
|
Reference in New Issue
Block a user