yargs
Advanced tools
Comparing version 1.0.13 to 1.0.15
14
index.js
@@ -15,13 +15,5 @@ var path = require('path'); | ||
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]; | ||
}); | ||
@@ -28,0 +20,0 @@ |
{ | ||
"name": "yargs", | ||
"version": "1.0.13", | ||
"version": "1.0.15", | ||
"description": "Light-weight option parsing with an argv hash. No optstrings attached.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -9,3 +9,3 @@ yargs | ||
[![Build Status](https://travis-ci.org/chevex/yargs.png)](https://travis-ci.org/chevex/yargs) | ||
[![Dependencies Status](https://gemnasium.com/Chevex/yargs.png)](https://gemnasium.com/Chevex/yargs) | ||
[![Dependency Status](https://gemnasium.com/chevex/yargs.png)](https://gemnasium.com/chevex/yargs) | ||
[![NPM version](https://badge.fury.io/js/yargs.png)](http://badge.fury.io/js/yargs) | ||
@@ -12,0 +12,0 @@ |
70120
1800