diff options
author | isaacs <i@izs.me> | 2011-03-30 07:15:01 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-03-30 09:05:00 +0400 |
commit | 63367db33cdfe1bf609fdabcc0a8e9fd917ce569 (patch) | |
tree | 9704c5268d75854ecc29b2342fbe39c0c0350bdd /bin | |
parent | 9aa65ea183d3d5ce5e8944561fae13e20e978713 (diff) |
Rename optparse to nopt
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/npm.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/npm.js b/bin/npm.js index 71467a2b6..b50875734 100755 --- a/bin/npm.js +++ b/bin/npm.js @@ -15,11 +15,11 @@ var fs = require("../lib/utils/graceful-fs") , configDefs = require("../lib/utils/config-defs") , shorthands = configDefs.shorthands , types = configDefs.types - , optparse = require("optparse") + , nopt = require("nopt") log.verbose(process.argv, "cli") -var conf = optparse(types, shorthands) +var conf = nopt(types, shorthands) npm.argv = conf.argv.remain if (npm.deref(npm.argv[0])) npm.command = npm.argv.shift() else conf.usage = true |