From c4bfbd3f94006e51b962ecaeab8b64a5e2d09191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Cruz?= Date: Thu, 23 May 2013 23:42:24 +0100 Subject: [PATCH] CS fix based on suggestions. --- lib/commands/install.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/lib/commands/install.js b/lib/commands/install.js index 81171eb1..573c681f 100644 --- a/lib/commands/install.js +++ b/lib/commands/install.js @@ -29,17 +29,17 @@ function install(endpoints, options) { // ------------------- -module.exports = install; - -module.exports.line = function (argv) { +install.line = function (argv) { var options = module.exports.options(argv); - return options.help ? - help('install') : - install(options.argv.remain.slice(1), options); + if (options.help) { + return help('install'); + } + + return install(options.argv.remain.slice(1), options); }; -module.exports.options = function (argv) { +install.options = function (argv) { return cli.readOptions(argv, { 'save': { type: Boolean, shorthand: 'S' }, 'save-dev': { type: Boolean, shorthand: 'D' }, @@ -48,3 +48,9 @@ module.exports.options = function (argv) { 'production': { type: Boolean, shorthand: 'p' } }); }; + +install.completion = function () { + // TODO: +}; + +module.exports = install; \ No newline at end of file