How to use the debugLog function from yargs
Find comprehensive JavaScript yargs.debugLog code examples handpicked from public code repositorys.
189 190 191 192 193 194 195 196 197 198
// // optional TLS overrides (ciphersuite etc) // try { files.serverTLS = fs.readFileSync(config['server-tlsopts-file'], 'utf8'); config.debugLog('Read TLS opts from %s: %s', config['server-tlsopts-file'], files.serverTLS); files.serverTLS = eval(files.serverTLS); if (files.serverTLS == null || ! typeof files.serverTLS === 'object') { throw('TLS opts file did not evaluate to an object'); }
19
18
42
+ 3 other calls in file
yargs.argv is the most popular function in yargs (1012 examples)