mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
Update OptionParser in all tools.
This commit is contained in:
@@ -523,7 +523,7 @@ sub get_opts {
|
||||
else {
|
||||
print "Error parsing version. See the VERSION section of the tool's documentation.\n";
|
||||
}
|
||||
exit 0;
|
||||
exit 1;
|
||||
}
|
||||
|
||||
if ( @ARGV && $self->{strict} ) {
|
||||
@@ -778,7 +778,7 @@ sub usage_or_errors {
|
||||
}
|
||||
elsif ( scalar @{$self->{errors}} ) {
|
||||
print $self->print_errors() or die "Cannot print errors: $OS_ERROR";
|
||||
exit 0 unless $return;
|
||||
exit 1 unless $return;
|
||||
}
|
||||
|
||||
return;
|
||||
|
Reference in New Issue
Block a user