From e01190a458bb14ccad0da5adea3719901ddd017d Mon Sep 17 00:00:00 2001 From: Pedro Ivo Hudson Date: Wed, 17 Jan 2024 10:35:16 -0300 Subject: [PATCH] feat(tools/attempt): add CLI debug option (#482) --- tools/attempt_protocols.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/attempt_protocols.js b/tools/attempt_protocols.js index 13cc6fb..822273a 100644 --- a/tools/attempt_protocols.js +++ b/tools/attempt_protocols.js @@ -12,6 +12,7 @@ if (argv._.length >= 1) { if (split.length >= 2) { options.port = split[1] } + options.debug = argv._[1] === 'debug' } const gamedig = new GameDig(options) @@ -28,7 +29,6 @@ const run = async () => { try { const response = await gamedig.query({ ...options, - debug: true, type: `protocol-${protocol}` }) console.log(response)