From: weasel Date: Mon, 25 Jul 2005 23:28:47 +0000 (+0000) Subject: Give Usage when called with no arguments X-Git-Url: https://git.sthu.org/?p=pgp-tools.git;a=commitdiff_plain;h=39c75822b5df62816e46e5c3d7a2f1940d517963 Give Usage when called with no arguments git-svn-id: svn://svn.debian.org/pgp-tools/trunk@144 b513b33f-fedd-0310-b452-c3deb5f4c849 --- diff --git a/gpglist/gpglist b/gpglist/gpglist index 1d253e3..42b4dce 100755 --- a/gpglist/gpglist +++ b/gpglist/gpglist @@ -32,10 +32,11 @@ use strict; use warnings; +use English; my $key=shift @ARGV; -if ( $key eq "" ) { - die +unless (defined $key) { + die "Usage: $PROGRAM_NAME \n"; } open SIGS, "gpg --fixed-list-mode --with-colons --list-sigs $key 2>/dev/null |"