summaryrefslogtreecommitdiff
path: root/deps/npm/lib/help.js
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2016-06-24 13:43:51 -0700
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2016-06-27 11:46:15 +0200
commitd538811fc8b920f3f36d5f21a4c23e270367ceb0 (patch)
tree11cee6c00aa843f16a71819039396f80bf6abe22 /deps/npm/lib/help.js
parent1db31a34948eee311abd9881bbf5d906d0cd678b (diff)
downloadandroid-node-v8-d538811fc8b920f3f36d5f21a4c23e270367ceb0.tar.gz
android-node-v8-d538811fc8b920f3f36d5f21a4c23e270367ceb0.tar.bz2
android-node-v8-d538811fc8b920f3f36d5f21a4c23e270367ceb0.zip
deps: upgrade npm to 3.10.2
Contains the following npm releases: - https://github.com/npm/npm/releases/tag/v3.9.6 - https://github.com/npm/npm/releases/tag/v3.10.0 - https://github.com/npm/npm/releases/tag/v3.10.1 - https://github.com/npm/npm/releases/tag/v3.10.2 PR-URL: https://github.com/nodejs/node/pull/7410 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/lib/help.js')
-rw-r--r--deps/npm/lib/help.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/npm/lib/help.js b/deps/npm/lib/help.js
index cecc6e02b0..cfac917999 100644
--- a/deps/npm/lib/help.js
+++ b/deps/npm/lib/help.js
@@ -15,6 +15,7 @@ var glob = require('glob')
var cmdList = require('./config/cmd-list').cmdList
var shorthands = require('./config/cmd-list').shorthands
var commands = cmdList.concat(Object.keys(shorthands))
+var output = require('./utils/output.js')
function help (args, cb) {
var argv = npm.config.get('argv').cooked
@@ -43,7 +44,7 @@ function help (args, cb) {
npm.commands[section].usage) {
npm.config.set('loglevel', 'silent')
log.level = 'silent'
- console.log(npm.commands[section].usage)
+ output(npm.commands[section].usage)
return cb()
}
@@ -161,7 +162,7 @@ function htmlMan (man) {
function npmUsage (valid, cb) {
npm.config.set('loglevel', 'silent')
log.level = 'silent'
- console.log([
+ output([
'\nUsage: npm <command>',
'',
'where <command> is one of:',