command line params refactor

This commit is contained in:
Jan Prochazka
2021-04-17 16:38:10 +02:00
parent 1d264ab559
commit c0c1f9d786
12 changed files with 56 additions and 27 deletions

View File

@@ -29,8 +29,9 @@ const scheduler = require('./controllers/scheduler');
const { rundir } = require('./utility/directories');
const platformInfo = require('./utility/platformInfo');
const processArgs = require('./utility/processArgs');
function start(argument = null) {
function start() {
// console.log('process.argv', process.argv);
const app = express();
@@ -91,7 +92,7 @@ function start(argument = null) {
}
}
if (argument == '--dynport') {
if (processArgs.dynport) {
childProcessChecker();
findFreePort(53911, function (err, port) {