add help cmd; fix locale

This commit is contained in:
Iuri Matias 2018-08-14 16:48:40 -04:00
parent 6cf6bcfff5
commit 8dcdc7fa38
1 changed files with 15 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class Cmd {
this.graph(); this.graph();
this.upload(); this.upload();
this.versionCmd(); this.versionCmd();
this.helpCmd();
this.otherCommands(); this.otherCommands();
//If no arguments are passed display help by default //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() { otherCommands() {
program program
.action(function (cmd) { .action(function (cmd) {