mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
lint: src/node/utils/Cli.js
This commit is contained in:
parent
60bc849be2
commit
52f60ceeaa
1 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
'use strict';
|
||||||
/**
|
/**
|
||||||
* The CLI module handles command line parameters
|
* The CLI module handles command line parameters
|
||||||
*/
|
*/
|
||||||
|
@ -30,22 +31,22 @@ for (let i = 0; i < argv.length; i++) {
|
||||||
arg = argv[i];
|
arg = argv[i];
|
||||||
|
|
||||||
// Override location of settings.json file
|
// Override location of settings.json file
|
||||||
if (prevArg == '--settings' || prevArg == '-s') {
|
if (prevArg === '--settings' || prevArg === '-s') {
|
||||||
exports.argv.settings = arg;
|
exports.argv.settings = arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Override location of credentials.json file
|
// Override location of credentials.json file
|
||||||
if (prevArg == '--credentials') {
|
if (prevArg === '--credentials') {
|
||||||
exports.argv.credentials = arg;
|
exports.argv.credentials = arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Override location of settings.json file
|
// Override location of settings.json file
|
||||||
if (prevArg == '--sessionkey') {
|
if (prevArg === '--sessionkey') {
|
||||||
exports.argv.sessionkey = arg;
|
exports.argv.sessionkey = arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Override location of settings.json file
|
// Override location of settings.json file
|
||||||
if (prevArg == '--apikey') {
|
if (prevArg === '--apikey') {
|
||||||
exports.argv.apikey = arg;
|
exports.argv.apikey = arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue