From f4d7e354367d78f36024255ca598431e3508005e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 2 Jun 2011 13:33:50 +0200 Subject: raps2: Print error message when called with an invalid action --- bin/raps2 | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/raps2 b/bin/raps2 index 27dcdbc..c92fe0e 100755 --- a/bin/raps2 +++ b/bin/raps2 @@ -25,6 +25,7 @@ given ($action) { when ('info') { $raps2->cmd_info(@args) } when ('list') { $raps2->cmd_list(@args) } when ('version') { say "raps2 version ${VERSION}" } + default { die "Unknown action: $action\n" } } __END__ -- cgit v1.2.3