Bug fix... yargs argv.js thingy...
This commit is contained in:
parent
db36cb33cf
commit
2bd61cf4c6
@ -18,9 +18,9 @@ module.exports.builder = (yargs) => {
|
||||
|
||||
module.exports.handler = (argv) => {
|
||||
console.log("Add lock which we will use our keys on.");
|
||||
console.log("Lock Definition: ", argv["lock-definition"]);
|
||||
|
||||
const lockDefintion = argv["lock-definition"].js || argv["lock-definition"];
|
||||
|
||||
const lockDefintion = argv["lock-definition"] || argv["lock-definition"].js;
|
||||
const challenge = JSON.parse(lockDefintion);
|
||||
const registerationMessage = JSON.parse(challenge.message);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user