lint: src/node/utils/Cli.js

This commit is contained in:
John McLear 2021-01-21 21:06:52 +00:00 committed by Richard Hansen
parent 60bc849be2
commit 52f60ceeaa

View file

@ -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;
} }