From 0c652d73c8414fa1397b0d3a9cdf9a693cbf9433 Mon Sep 17 00:00:00 2001 From: nkzawa Date: Tue, 19 Apr 2016 20:28:28 +0900 Subject: [PATCH] display default help if wrong command was specified --- bin/now | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/now b/bin/now index 5902889..9c811b6 100755 --- a/bin/now +++ b/bin/now @@ -26,7 +26,8 @@ let cmd = argv._[0]; let args = []; if ('help' === cmd) { - cmd = argv._[1] || defaultCommand; + cmd = argv._[1]; + if (!commands.has(cmd)) cmd = defaultCommand; args.push('--help'); }