Give Usage when called with no arguments
[pgp-tools.git] / gpglist / gpglist
index 1d253e372c8d9185285507e6f7d8a4aaae7ed190..42b4dcea3d00abc04cb9d5cc6cd7dac80f461e6a 100755 (executable)
 
 use strict;
 use warnings;
+use English;
 
 my $key=shift @ARGV;
-if ( $key eq "" ) {
-       die
+unless (defined $key) {
+       die "Usage: $PROGRAM_NAME <keyid>\n";
 }
 
 open SIGS, "gpg --fixed-list-mode --with-colons --list-sigs $key 2>/dev/null |"