From 39c75822b5df62816e46e5c3d7a2f1940d517963 Mon Sep 17 00:00:00 2001 From: weasel Date: Mon, 25 Jul 2005 23:28:47 +0000 Subject: [PATCH] Give Usage when called with no arguments git-svn-id: svn://svn.debian.org/pgp-tools/trunk@144 b513b33f-fedd-0310-b452-c3deb5f4c849 --- gpglist/gpglist | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 |" -- 2.39.5