Skip to content

Commit

Permalink
alias options() to option()
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jul 14, 2011
1 parent 183cdef commit 5c95c73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function Argv (args, cwd) {
return Argv(args).argv;
};

self.options = function (key, opt) {
self.option = self.options = function (key, opt) {
if (typeof key === 'object') {
Object.keys(key).forEach(function (k) {
self.options(k, key[k]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "optimist",
"version" : "0.2.5",
"version" : "0.2.6",
"description" : "Light-weight option parsing with an argv hash. No optstrings attached.",
"main" : "./index.js",
"directories" : {
Expand Down

0 comments on commit 5c95c73

Please sign in to comment.