]> granicus.if.org Git - pgbadger/commitdiff
Fix dies on command line options error.
authorDarold Gilles <gilles@darold.net>
Thu, 21 Feb 2013 23:26:40 +0000 (00:26 +0100)
committerDarold Gilles <gilles@darold.net>
Thu, 21 Feb 2013 23:26:40 +0000 (00:26 +0100)
pgbadger

index 8aeec814d2ac96f5578c22a6a25d808ba6326db6..c13caa9c32fe43d3607f92cb6a7ccc250af3e47f 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -239,6 +239,8 @@ my $result = GetOptions(
        "disable-autovacuum!"      => \$disable_autovacuum,
        "client=s"                 => \@dbclient2, # Backward compatibility
 );
+die "FATAL: use pgbadger --help\n" if (not $result);
+
 push(@dbclient, @dbclient2); # Backward compatibility
 
 if ($ver) {