From 8dcdc7fa38c06a4f9208e2b9d3127ddf14c95d09 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 14 Aug 2018 16:48:40 -0400 Subject: [PATCH] add help cmd; fix locale --- cmd/cmd.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cmd/cmd.js b/cmd/cmd.js index 383f3da5..97a3ff66 100644 --- a/cmd/cmd.js +++ b/cmd/cmd.js @@ -21,6 +21,7 @@ class Cmd { this.graph(); this.upload(); this.versionCmd(); + this.helpCmd(); this.otherCommands(); //If no arguments are passed display help by default @@ -284,6 +285,20 @@ class Cmd { }); } + helpCmd() { + program + .command('help') + .description(__('output usage information and help information')) + .action(function () { + console.log("Documentation can be found at: ".green + "https://embark.status.im/docs/".underline.green); + console.log(""); + console.log("Have an issue? submit it here: ".green + "https://github.com/embark-framework/embark/issues/new".underline.green); + console.log("or chat with us directly at: ".green + "https://gitter.im/embark-framework/Lobby".underline.green); + program.help(); + process.exit(0); + }); + } + otherCommands() { program .action(function (cmd) {