tlrobinson / narwhal

[DEPRECATED] A JavaScript standard library, package manager, and more.
http://narwhaljs.org/
372 stars 16 forks source link

Pull request: Parser.reset() method in narwhal/args #103

Closed abhinav closed 14 years ago

abhinav commented 14 years ago

The Parser.reset() method is completely unused. It appears to have been made to copy the default values over to the options hash.

I changed reset() to be exactly like the initial values loop at line 382 in Parser.parse() and made parse() call reset() instead of copying the values separately.

http://github.com/abhinav/narwhal/commit/b39f41dd685527664259e3f2dc2a6dc8a1812fcc