mirror of https://github.com/embarklabs/embark.git
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.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) {
|
||||||
|
|
Loading…
Reference in New Issue