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
path: root/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-05-07 05:17:22 +0400
committerisaacs <i@izs.me>2014-05-07 05:18:04 +0400
commite1160eba7ac481a0c0523774cdfc53e1dd054104 (patch)
treefc3223e98c14c3b41eb2f300a69f3f9a65593dbd /lib
parent79a102f922c5c53576773a9d212a513a7d6a5894 (diff)
semver@2.3.0
This adds the "prerelease", "prepatch", "preminor", "premajor" options for `npm version`.
Diffstat (limited to 'lib')
-rw-r--r--lib/version.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/version.js b/lib/version.js
index 4e155da96..bc4871592 100644
--- a/lib/version.js
+++ b/lib/version.js
@@ -11,7 +11,7 @@ var exec = require("child_process").execFile
, which = require("which")
, npm = require("./npm.js")
-version.usage = "npm version [<newversion> | major | minor | patch]\n"
+version.usage = "npm version [<newversion> | major | minor | patch | prerelease | preminor | premajor ]\n"
+ "\n(run in package dir)\n"
+ "'npm -v' or 'npm --version' to print npm version "
+ "("+npm.version+")\n"