'use strict' var meow = require('meow') var help = '' + 'Authenticates against the Amazon Echo Web App API.\n' + 'Spins up a webserver (and optionally a telnet server) to access your Echo devices for remote control.\n\n' + 'Usage:\n' + ' $ alexis [options]\n\n' + 'Example:\n' + ' $ alexis --http-port=5000 --email=my@mail.com --pass=MyHopefullySuperSecretAmazonPasswort\n\n' + 'Options:\n' + ' --email Your Echo account e-mail\n' + ' --pass Your Echo account password\n' + ' --http-port [optional] Port the HTTP Server should be running on\n' + ' --telnet-port [optional] Port the Telnet Server should be running on\n' + ' --interval [optional] The fetch interval for querying the Echo API (default 10 sec.)\n' + ' --no-colors [optional] Disables all colors in the terminal outoput\n' + ' --quiet [optional] Disables all terminal output\n' var args = { string: [ 'http-port', 'telnet-port', 'email', 'pass', 'interval', 'no-colors', 'quiet', ] } module.exports = function (runner) { var cli = meow(help, args) runner(cli.flags, cli.showHelp) }