UNPKG

hueadm

Version:

A command line management interface to phillips hue

32 lines (24 loc) 574 B
var common = require('../common'); module.exports = config; function config(subcmd, opts, args, cb) { var self = this; var finish = common.makeFinisher(opts, cb); if (opts.help) { self.do_help('help', {}, [subcmd], cb); return; } self.client.config(finish); } config.options = [ { names: ['help', 'h'], type: 'bool', help: 'Show this help.' }, { names: ['json', 'j'], type: 'bool', help: 'JSON output.' } ]; config.help = 'Show the hue bridge config\n\n{{options}}';