Minor changes
This commit is contained in:
parent
752c4c491b
commit
90cce21e3a
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "shout",
|
"name": "shout",
|
||||||
"description": "A web IRC client",
|
"description": "A web IRC client",
|
||||||
"version": "0.12.0",
|
"version": "0.12.1",
|
||||||
"author": "Mattias Erming",
|
"author": "Mattias Erming",
|
||||||
"preferGlobal": true,
|
"preferGlobal": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
var program = require("commander");
|
var program = require("commander");
|
||||||
|
var pkg = require("../../package.json");
|
||||||
|
|
||||||
require("./start");
|
require("./start");
|
||||||
require("./config");
|
require("./config");
|
||||||
@ -7,9 +8,7 @@ require("./add");
|
|||||||
require("./remove");
|
require("./remove");
|
||||||
require("./edit");
|
require("./edit");
|
||||||
|
|
||||||
program
|
program.parse(process.argv);
|
||||||
.option("-p, --port <port>")
|
|
||||||
.parse(process.argv);
|
|
||||||
|
|
||||||
if (!program.args.length) {
|
if (!program.args.length) {
|
||||||
program.parse(process.argv.concat("start"));
|
program.parse(process.argv.concat("start"));
|
||||||
|
@ -4,6 +4,7 @@ var program = require("commander");
|
|||||||
var shout = require("../server");
|
var shout = require("../server");
|
||||||
|
|
||||||
program
|
program
|
||||||
|
.option("-p, --port <port>")
|
||||||
.command("start")
|
.command("start")
|
||||||
.description("Start the server")
|
.description("Start the server")
|
||||||
.action(function() {
|
.action(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user