diff --git a/cli.js b/cli.js index dadb79831..cfb588cfe 100755 --- a/cli.js +++ b/cli.js @@ -491,7 +491,7 @@ process.on('uncaughtException', function(err) { break; case 'link': - options = readOptions(args, ['force', 'yes', 'quick']); + options = readOptions(args, ['force', 'yes', 'quick', 'dev', 'peer']); if (options.yes) ui.useDefaults(); diff --git a/lib/link.js b/lib/link.js index 173c1dc6f..1df6a990b 100644 --- a/lib/link.js +++ b/lib/link.js @@ -192,7 +192,7 @@ exports.link = function(dir, name, options) { var installName = alias || pkg.package.split('/').pop(); config.loader.baseMap[installName] = pkg; // NB options.quick for linked should still link, but just not do more than dependency checks - return install.install(installName, pkg.exactName, { quick: options.quick, force: options.force }); + return install.install(installName, pkg.exactName, { quick: options.quick, force: options.force, dev: options.dev, peer: options.peer }); }) .then(function(aborted) { if (!aborted)