Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Liulia <pavloblack@hotmail.com>2017-04-08 14:54:38 +0300
committerRebecca Turner <me@re-becca.org>2017-04-21 02:12:52 +0300
commit566f3eebe741f935b7c1e004bebf19b8625a1413 (patch)
treee3b7451353ccc7d16a61e9ebe92fab214dea8dec
parent65b9943e9424c67547b0029f02b0258e35ba7d26 (diff)
doc: preserve same name convention for command
Credit: @desfero PR-URL: https://github.com/npm/npm/pull/16296 Reviewed-By: @iarna
-rw-r--r--README.md2
-rw-r--r--doc/cli/npm-explore.md2
-rw-r--r--lib/explore.js2
-rw-r--r--lib/help.js6
4 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 1ba66e46a..cad3409cd 100644
--- a/README.md
+++ b/README.md
@@ -78,7 +78,7 @@ If you plan on hacking on npm, `make link` is your friend.
If you've got the npm source code, you can also semi-permanently set
arbitrary config keys using the `./configure --key=val ...`, and then
-run npm commands by doing `node cli.js <cmd> <args>`. (This is helpful
+run npm commands by doing `node cli.js <command> <args>`. (This is helpful
for testing, or running stuff without actually installing npm itself.)
## Windows Install or Upgrade
diff --git a/doc/cli/npm-explore.md b/doc/cli/npm-explore.md
index b66e08bfb..44b77f943 100644
--- a/doc/cli/npm-explore.md
+++ b/doc/cli/npm-explore.md
@@ -3,7 +3,7 @@ npm-explore(1) -- Browse an installed package
## SYNOPSIS
- npm explore <pkg> [ -- <cmd>]
+ npm explore <pkg> [ -- <command>]
## DESCRIPTION
diff --git a/lib/explore.js b/lib/explore.js
index 5640d5f15..826a527fa 100644
--- a/lib/explore.js
+++ b/lib/explore.js
@@ -2,7 +2,7 @@
// open a subshell to the package folder.
module.exports = explore
-explore.usage = 'npm explore <pkg> [ -- <cmd>]'
+explore.usage = 'npm explore <pkg> [ -- <command>]'
explore.completion = require('./utils/completion/installed-shallow.js')
var npm = require('./npm.js')
diff --git a/lib/help.js b/lib/help.js
index cfac91799..9763d5fcc 100644
--- a/lib/help.js
+++ b/lib/help.js
@@ -38,7 +38,7 @@ function help (args, cb) {
return npmUsage(valid, cb)
}
- // npm <cmd> -h: show command usage
+ // npm <command> -h: show command usage
if (npm.config.get('usage') &&
npm.commands[section] &&
npm.commands[section].usage) {
@@ -169,7 +169,7 @@ function npmUsage (valid, cb) {
npm.config.get('long') ? usages()
: ' ' + wrap(commands),
'',
- 'npm <cmd> -h quick help on <cmd>',
+ 'npm <command> -h quick help on <command>',
'npm -l display full usage info',
'npm help <term> search for help on <term>',
'npm help npm involved overview',
@@ -185,7 +185,7 @@ function npmUsage (valid, cb) {
}
function usages () {
- // return a string of <cmd>: <usage>
+ // return a string of <command>: <usage>
var maxLen = 0
return Object.keys(npm.commands).filter(function (c) {
return c === npm.deref(c)