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 /lib | |
parent | 9aa65ea183d3d5ce5e8944561fae13e20e978713 (diff) |
Rename optparse to nopt
Diffstat (limited to 'lib')
-rw-r--r-- | lib/completion.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/completion.js b/lib/completion.js index f56a9b15b..dbcdc55ff 100644 --- a/lib/completion.js +++ b/lib/completion.js @@ -7,7 +7,7 @@ var output = require("./utils/output") , configDefs = require("./utils/config-defs") , configTypes = configDefs.types , shorthands = configDefs.shorthands - , optparse = require("optparse") + , nopt = require("nopt") , configNames = Object.keys(configTypes).filter(function (e) { return e.charAt(0) !== "_" }) @@ -116,7 +116,7 @@ function completion (args, cb) { // don't have to worry about the last arg being implicitly // boolean'ed, since the last block will catch that. var parsed = opts.conf = - optparse(configTypes, shorthands, partialWords.slice(0, -1), 0) + nopt(configTypes, shorthands, partialWords.slice(0, -1), 0) // check if there's a command already. console.error(parsed) var cmd = parsed.argv.remain[1] |