Added '-v, --version' option
This commit is contained in:
parent
3c76399cd0
commit
7defba55eb
@ -1,6 +1,8 @@
|
|||||||
var program = require("commander");
|
var program = require("commander");
|
||||||
var pkg = require("../../package.json");
|
var pkg = require("../../package.json");
|
||||||
|
|
||||||
|
program.version(pkg.version, "-v, --version");
|
||||||
|
|
||||||
require("./start");
|
require("./start");
|
||||||
require("./config");
|
require("./config");
|
||||||
require("./list");
|
require("./list");
|
||||||
|
@ -4,10 +4,10 @@ var program = require("commander");
|
|||||||
var shout = require("../server");
|
var shout = require("../server");
|
||||||
|
|
||||||
program
|
program
|
||||||
.option("-h, --host <ip>", "host")
|
.option("-H, --host <ip>", "host")
|
||||||
.option("-p, --port <port>", "port")
|
.option("-p, --port <port>", "port")
|
||||||
.option(" --public")
|
.option(" --public", "mode")
|
||||||
.option(" --private")
|
.option(" --private", "mode")
|
||||||
.command("start")
|
.command("start")
|
||||||
.description("Start the server")
|
.description("Start the server")
|
||||||
.action(function() {
|
.action(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user