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