]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Abort with an error if no files are given.
[blhc/blhc.git] / bin / blhc
index 0fbf4c9a2de11c12192b184cdb749a2e36152c25..835e9e04e344cea2d96ffe44f5a4fc032343eb83 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -441,7 +441,8 @@ 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);
 }