mirror of
https://github.com/thelounge/thelounge
synced 2025-02-17 05:38:25 +00:00
Added '-v, --version' option
This commit is contained in:
parent
3c76399cd0
commit
7defba55eb
2 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue