mirror of
https://github.com/EvolutionAPI/evolution-manager.git
synced 2025-07-13 15:14:49 -06:00
15 lines
273 B
JavaScript
15 lines
273 B
JavaScript
var argv = require('optimist').argv
|
|
|
|
const isVerbose = argv.verbose || false
|
|
const verbose = isVerbose ? verboseConsole : () => { };
|
|
|
|
module.exports = {
|
|
verbose,
|
|
isVerbose
|
|
}
|
|
|
|
function verboseConsole() {
|
|
if (isVerbose) {
|
|
console.log.apply(console, arguments)
|
|
}
|
|
} |