Skip to content

Commit cb9ef48

Browse files
committed
Fix arg handling
1 parent 8244b7d commit cb9ef48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmds/analyze.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ const argValidation = {
220220
//Returns an error or undefined in no error
221221
function validateClientDataArgs(argv) {
222222
for (let arg of Object.keys(argValidation)) {
223-
if (argv[argv]) {
223+
if (argv[arg]) {
224224
const spec = argValidation[arg];
225225

226226
if (spec.requiresOne && !spec.requiresOne.some(r => argv[r])) {

0 commit comments

Comments
 (0)