Fix -D flag

Fixes #376
This commit is contained in:
Nick Farina
2015-11-04 04:31:52 -08:00
parent 2470f26451
commit e3178e5fa4
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ module.exports = function() {
program
.version(version)
.option('-P, --plugin-path [path]', 'look for plugins installed at [path] as well as the default locations ([path] can also point to a single plugin)', function(p) { Plugin.addPluginPath(p); })
.option('-D, --debug', 'turn on debug level logging', function() { logger.setDebugEnabled(true) })
.option('-D, --debug', 'turn on debug level logging', function() { require('./logger').setDebugEnabled(true) })
.parse(process.argv);
// Initialize HAP-NodeJS with a custom persist directory