From: Darold Gilles Date: Thu, 21 Feb 2013 23:26:40 +0000 (+0100) Subject: Fix dies on command line options error. X-Git-Tag: v3.2~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=147284898a680132a60a8345b1ecf0f3da0034f3;p=pgbadger Fix dies on command line options error. --- diff --git a/pgbadger b/pgbadger index 8aeec81..c13caa9 100755 --- 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) {