From 8dd049babf5d3436c3fc1350140f25d0ea095eb0 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Thu, 30 Dec 2010 16:53:37 -0500 Subject: [PATCH] msva-query-agent report usage when no arguments are given --- msva-query-agent | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]