From 9a1397c441c93ae80e9bc3a7e64bb1db6d4937b3 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Thu, 25 Jun 2015 17:00:16 +0100 Subject: [PATCH] Show help when the user enters an incorrect session subcommand This reverts commit 320c60bb86b788fdf5fe05832db78aeb1809f47a. --- cmd-session.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd-session.go b/cmd-session.go index 7e64f31e..79efe5d2 100644 --- a/cmd-session.go +++ b/cmd-session.go @@ -244,5 +244,7 @@ func runSessionCmd(ctx *cli.Context) { Error: iodine.ToError(err), }) } + default: + cli.ShowCommandHelpAndExit(ctx, "session", 1) // last argument is exit code } }