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 program
.version(version) .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('-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); .parse(process.argv);
// Initialize HAP-NodeJS with a custom persist directory // Initialize HAP-NodeJS with a custom persist directory

View File

@@ -3,7 +3,7 @@
"description": "HomeKit support for the impatient", "description": "HomeKit support for the impatient",
"version": "0.2.1", "version": "0.2.1",
"scripts": { "scripts": {
"dev": "DEBUG=* ./bin/homebridge -P example-plugins/ || true" "dev": "DEBUG=* ./bin/homebridge -D -P example-plugins/ || true"
}, },
"author": { "author": {
"name": "Nick Farina" "name": "Nick Farina"