CLI setting for custom homebridge "home" path

Fixes #378
This commit is contained in:
Nick Farina
2015-11-04 09:47:48 -08:00
parent 9883eb7189
commit f2ad339a13
2 changed files with 9 additions and 0 deletions

View File

@@ -13,6 +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('-H, --homebridge-home [path]', 'look for homebridge user files at [path] instead of the default location (~/.homebridge)', function(p) { User.setStoragePath(p); })
.option('-D, --debug', 'turn on debug level logging', function() { require('./logger').setDebugEnabled(true) })
.parse(process.argv);