From ccdc4e564080abfa748ffcff1af2c778ca641efa Mon Sep 17 00:00:00 2001 From: agibalov Date: Sun, 22 Jul 2018 23:08:26 -0400 Subject: [PATCH] Making tool show help when there's no command or if command is unknown --- aws-emr-experiment/tool | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aws-emr-experiment/tool b/aws-emr-experiment/tool index 7fe2092..a66c0cb 100755 --- a/aws-emr-experiment/tool +++ b/aws-emr-experiment/tool @@ -107,6 +107,8 @@ const argv = yargs console.log(`aws emr ssh --cluster-id ${clusterId} --key-pair-file ./${ec2KeyLocalFilename}`); }) .help() + .demandCommand() + .strict() .argv; function shell(command) {