aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-10 01:46:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-10 01:46:46 -0300
commit6a24bde9a781220a2cc091d2d0123612ea35cf0f (patch)
treefd0006ee51b0e830bb9dfbfe51f6b02bc76617a4
parent941d22b0548ec066d176c4740b7db8403608179b (diff)
downloadkvmx-6a24bde9a781220a2cc091d2d0123612ea35cf0f.tar.gz
kvmx-6a24bde9a781220a2cc091d2d0123612ea35cf0f.tar.bz2
Display usage on invalid action
-rwxr-xr-xkvmx2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index a94caf1..8bbb55b 100755
--- a/kvmx
+++ b/kvmx
@@ -387,4 +387,6 @@ function kvmx_status {
if type kvmx_$ACTION 2> /dev/null | grep -q 'function'; then
kvmx_initialize
kvmx_$ACTION $*
+else
+ kvmx_usage
fi