feat(tools/attempt): add CLI debug option (#482)

This commit is contained in:
Pedro Ivo Hudson 2024-01-17 10:35:16 -03:00 committed by GitHub
parent fca459b336
commit e01190a458
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)