X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;h=b0ab4a62736860594a8273db34d00d2a7f8d0026;hp=12b7eab8832d965c3d84053f62b21cf153513f59;hb=93540e07ace91544bd5e72f509d6b83744d98e07;hpb=bf5719acca9adbff052c317394c2c3ac8a815b62 diff --git a/bin/blhc b/bin/blhc index 12b7eab..b0ab4a6 100755 --- a/bin/blhc +++ b/bin/blhc @@ -449,8 +449,7 @@ if (not Getopt::Long::GetOptions( 'color' => \$option_color, 'arch=s' => \$option_arch, 'buildd' => \$option_buildd, - ) - or scalar @ARGV == 0) { + )) { require Pod::Usage; Pod::Usage::pod2usage(2); } @@ -477,6 +476,12 @@ along with this program. If not, see . exit 0; } +# Arguments missing. +if (scalar @ARGV == 0) { + require Pod::Usage; + Pod::Usage::pod2usage(2); +} + # Don't load Term::ANSIColor in buildd mode because Term::ANSIColor is not # installed on Debian's buildds. if (not $option_buildd) {