From 8634364e8bb45cfaf0d52a0358d1bc0ac201ce22 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 1 Jul 2009 15:35:21 +0200 Subject: envstore: usage: Just refer to perldoc, don't call it all the time --- bin/envstore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/envstore b/bin/envstore index fb6b87b..414d4a3 100755 --- a/bin/envstore +++ b/bin/envstore @@ -14,7 +14,8 @@ my $arg2 = shift; my ($key, $value); sub usage { - exec('perldoc', '-F', $0) or die("Yo, cannot execute perldoc -F $0, so do it yourself"); + print STDERR "Invalid invocation - see perldoc -F $0\n"; + exit(1); } sub check_store { -- cgit v1.2.3