summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-show-interfaces.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/vyatta-show-interfaces.pl b/scripts/vyatta-show-interfaces.pl
index 46f024a..4d89bc3 100755
--- a/scripts/vyatta-show-interfaces.pl
+++ b/scripts/vyatta-show-interfaces.pl
@@ -343,7 +343,7 @@ sub usage {
print " NAME = ", join(' | ', get_intf_for_type()), "\n";
print " TYPE = ", join(' | ', Vyatta::Interface::interface_types()), "\n";
print " ACTION = ", join(' | ', keys %action_hash), "\n";
- exit 0;
+ exit 1;
}
#
@@ -376,7 +376,8 @@ my $func;
if (defined $action_hash{$action}) {
$func = $action_hash{$action};
} else {
- die "Invalid action [$action]\n";
+ print "Invalid action [$action]\n";
+ usage();
}
#