Added '-v, --version' option

This commit is contained in:
Mattias Erming 2014-09-15 12:50:57 -07:00
parent 3c76399cd0
commit 7defba55eb
2 changed files with 5 additions and 3 deletions

View File

@ -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");

View File

@ -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() {