Skip to content

Commit

Permalink
fix parse() to work with functions before it
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 30, 2013
1 parent b13bd4c commit a20228f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ function Argv (args, cwd) {
return self;
};

self.parse = function (args) {
return Argv(args).argv;
self.parse = function (args_) {
args = args_;
return self.argv;
};

self.option = self.options = function (key, opt) {
Expand Down

0 comments on commit a20228f

Please sign in to comment.