add help cmd; fix locale
This commit is contained in:
parent
6cf6bcfff5
commit
8dcdc7fa38
15
cmd/cmd.js
15
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) {
|
||||
|
|
Loading…
Reference in New Issue