From 39a157f8f598c5d60c8b4429cf39598bfdf9ecb7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 14 Nov 2010 13:34:33 +0100 Subject: icli: Die upon invalid options --- bin/icli | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/icli b/bin/icli index 85c2101..4d7d2a5 100755 --- a/bin/icli +++ b/bin/icli @@ -357,7 +357,8 @@ GetOptions( 'v|verbose+' => \$verbosity, 'V|version' => sub { say "icli version $VERSION"; exit 0 }, 'x|critical-only' => \$short, -); +) + or die("Please see perldoc -F $0 for help\n"); read_objects($status_file, \$data); read_objects($config_file, \$config); -- cgit v1.2.3