var config = require("../../config.json"); var ClientManager = new require("../clientManager"); var program = require("commander"); var shout = require("../server"); program .option("-p, --port ") .command("start") .description("Start the server") .action(function() { var users = new ClientManager().getUsers(); if (!config.public && !users.length) { console.log(""); console.log("No users found!"); console.log("Create a new user with 'shout add-user '.") console.log(""); } else { var port = program.port || config.port; shout(port, config.public); } });