kopia lustrzana https://github.com/c9/core
add c9 --version
rodzic
74fc98e7b7
commit
bf5aede66e
|
@ -47,6 +47,11 @@ define(function(require, exports, module) {
|
||||||
optimist = require('optimist');
|
optimist = require('optimist');
|
||||||
|
|
||||||
if (!module || !commands[module]) {
|
if (!module || !commands[module]) {
|
||||||
|
if (process.argv.indexOf("--version") != -1) {
|
||||||
|
console.log(require("../../package.json").version);
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
argv = optimist
|
argv = optimist
|
||||||
.usage("The Cloud9 CLI.\nUsage: c9 [--verbose] <command> [<args>]\n\n"
|
.usage("The Cloud9 CLI.\nUsage: c9 [--verbose] <command> [<args>]\n\n"
|
||||||
+ "The most commonly used c9 commands are:\n"
|
+ "The most commonly used c9 commands are:\n"
|
||||||
|
|
Ładowanie…
Reference in New Issue