If no arguments are passed to embark, then display help by default

This commit is contained in:
Andy Nogueira 2017-02-17 14:34:07 -05:00
parent 97de27e0c2
commit e6d998fd1a
1 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,12 @@ Cmd.prototype.process = function(args) {
this.test(); this.test();
this.upload(); this.upload();
this.otherCommands(); this.otherCommands();
//If no arguments are passed display help by default
if (!process.argv.slice(2).length) {
program.help();
}
program.parse(args); program.parse(args);
}; };