Skip to content

Commit

Permalink
Revert "Fixed issue which caused .demand function not to work correct…
Browse files Browse the repository at this point in the history
…ly."

This reverts commit 6509e5e.
  • Loading branch information
Alex Ford authored and Alex Ford committed Feb 5, 2014
1 parent 275788c commit f33bbb0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions index.js
Expand Up @@ -12,17 +12,9 @@ var wordwrap = require('./lib/wordwrap');

var inst = Argv(process.argv.slice(2));
Object.keys(inst).forEach(function (key) {
if (key === 'argv') {
Object.defineProperty(Argv, 'argv', {
get: function() { return inst.argv; },
enumerable: true,
});
}
else {
Argv[key] = typeof inst[key] == 'function'
? inst[key].bind(inst)
: inst[key];
}
Argv[key] = typeof inst[key] == 'function'
? inst[key].bind(inst)
: inst[key];
});

var exports = module.exports = Argv;
Expand Down

0 comments on commit f33bbb0

Please sign in to comment.