Update OptionParser in all tools.

This commit is contained in:
Daniel Nichter
2012-10-22 12:17:08 -06:00
parent af1240b6f6
commit 0d4d008f79
28 changed files with 86 additions and 67 deletions

View File

@@ -1256,7 +1256,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} ) {
@@ -1511,7 +1511,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;