summaryrefslogtreecommitdiff
path: root/bin/icli
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-11-14 13:34:33 +0100
committerDaniel Friesel <derf@finalrewind.org>2010-11-14 13:34:33 +0100
commit39a157f8f598c5d60c8b4429cf39598bfdf9ecb7 (patch)
treea2aa0918303275ce80a367a109fa4d78b11a439b /bin/icli
parent74fd74de5724dae4d7ba399b06cde9c1be9604e1 (diff)
icli: Die upon invalid options
Diffstat (limited to 'bin/icli')
-rwxr-xr-xbin/icli3
1 files changed, 2 insertions, 1 deletions
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);