From e6d998fd1af2ab807ce54b148b1c6f452716ef82 Mon Sep 17 00:00:00 2001 From: Andy Nogueira Date: Fri, 17 Feb 2017 14:34:07 -0500 Subject: [PATCH] If no arguments are passed to embark, then display help by default --- lib/cmd.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/cmd.js b/lib/cmd.js index fd93a9f0..05bcd33a 100644 --- a/lib/cmd.js +++ b/lib/cmd.js @@ -16,6 +16,12 @@ Cmd.prototype.process = function(args) { this.test(); this.upload(); this.otherCommands(); + + //If no arguments are passed display help by default + if (!process.argv.slice(2).length) { + program.help(); + } + program.parse(args); };