mirror of
https://github.com/bower/bower.git
synced 2026-02-11 22:44:58 -05:00
CS fix based on suggestions.
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user