lint: src/node/utils/Cli.js
parent
60bc849be2
commit
52f60ceeaa
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue