mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-18 01:30:39 +01:00
feat(tools/attempt): add CLI debug option (#482)
This commit is contained in:
parent
fca459b336
commit
e01190a458
1 changed files with 1 additions and 1 deletions
|
@ -12,6 +12,7 @@ if (argv._.length >= 1) {
|
||||||
if (split.length >= 2) {
|
if (split.length >= 2) {
|
||||||
options.port = split[1]
|
options.port = split[1]
|
||||||
}
|
}
|
||||||
|
options.debug = argv._[1] === 'debug'
|
||||||
}
|
}
|
||||||
|
|
||||||
const gamedig = new GameDig(options)
|
const gamedig = new GameDig(options)
|
||||||
|
@ -28,7 +29,6 @@ const run = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await gamedig.query({
|
const response = await gamedig.query({
|
||||||
...options,
|
...options,
|
||||||
debug: true,
|
|
||||||
type: `protocol-${protocol}`
|
type: `protocol-${protocol}`
|
||||||
})
|
})
|
||||||
console.log(response)
|
console.log(response)
|
||||||
|
|
Loading…
Reference in a new issue