CS fix based on suggestions.

This commit is contained in:
André Cruz
2013-05-23 23:42:24 +01:00
parent f4c1a125e7
commit c4bfbd3f94

View File

@@ -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;