Skip to content

Commit

Permalink
Making tool show help when there's no command or if command is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
agibalov committed Jul 23, 2018
1 parent 628a42d commit ccdc4e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aws-emr-experiment/tool
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ccdc4e5

Please sign in to comment.