From: Daniel Kahn Gillmor Date: Thu, 30 Dec 2010 21:53:37 +0000 (-0500) Subject: msva-query-agent report usage when no arguments are given X-Git-Url: http://git.tremily.us/?p=monkeysphere-validation-agent.git;a=commitdiff_plain;h=8dd049babf5d3436c3fc1350140f25d0ea095eb0 msva-query-agent report usage when no arguments are given --- diff --git a/msva-query-agent b/msva-query-agent index 62e291a..ef8a2d4 100755 --- a/msva-query-agent +++ b/msva-query-agent @@ -22,7 +22,8 @@ use strict; use Crypt::Monkeysphere::MSVA::Client; my $context = shift; -if ($context eq '--help') { +if ((!defined($context)) || + $context eq '--help') { printf STDERR "Usage: msva-query-agent CONTEXT PEER PKC_TYPE [PEER_TYPE]