mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
add c9 --version
This commit is contained in:
parent
74fc98e7b7
commit
bf5aede66e
@ -47,6 +47,11 @@ define(function(require, exports, module) {
|
||||
optimist = require('optimist');
|
||||
|
||||
if (!module || !commands[module]) {
|
||||
if (process.argv.indexOf("--version") != -1) {
|
||||
console.log(require("../../package.json").version);
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
argv = optimist
|
||||
.usage("The Cloud9 CLI.\nUsage: c9 [--verbose] <command> [<args>]\n\n"
|
||||
+ "The most commonly used c9 commands are:\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user