lint: src/node/utils/Cli.js

pull/4667/head
John McLear 2021-01-21 21:06:52 +00:00 committed by Richard Hansen
parent 60bc849be2
commit 52f60ceeaa
1 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,4 @@
'use strict';
/**
* The CLI module handles command line parameters
*/
@ -30,22 +31,22 @@ for (let i = 0; i < argv.length; i++) {
arg = argv[i];
// Override location of settings.json file
if (prevArg == '--settings' || prevArg == '-s') {
if (prevArg === '--settings' || prevArg === '-s') {
exports.argv.settings = arg;
}
// Override location of credentials.json file
if (prevArg == '--credentials') {
if (prevArg === '--credentials') {
exports.argv.credentials = arg;
}
// Override location of settings.json file
if (prevArg == '--sessionkey') {
if (prevArg === '--sessionkey') {
exports.argv.sessionkey = arg;
}
// Override location of settings.json file
if (prevArg == '--apikey') {
if (prevArg === '--apikey') {
exports.argv.apikey = arg;
}