get-options
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -10,2 +10,12 @@ Change Log | ||
[v1.1.1] | ||
------------------------------------------------------------------------ | ||
**August 24th, 2016** | ||
Housekeeping release to optimise module distribution and fix minor bugs. | ||
* __Fixed:__ Exceptions thrown when passing blank arguments | ||
* __Fixed:__ Main file shouldn't include hashbang or be executable | ||
* __Fixed:__ Unnecessary files included with NPM downloads | ||
[v1.1.0] | ||
@@ -42,4 +52,5 @@ ------------------------------------------------------------------------ | ||
[Referenced links]:_____________________________________________________ | ||
[v1.1.1]: https://github.com/Alhadis/GetOptions/releases/tag/v1.1.1 | ||
[v1.1.0]: https://github.com/Alhadis/GetOptions/releases/tag/v1.1.0 | ||
[v1.0.1]: https://github.com/Alhadis/GetOptions/releases/tag/v1.0.1 | ||
[v1.0.0]: https://github.com/Alhadis/GetOptions/releases/tag/v1.0.0 |
@@ -1,2 +0,1 @@ | ||
#!/usr/local/bin/node --es_staging | ||
"use strict"; | ||
@@ -198,2 +197,4 @@ | ||
/** Bail early if passed a blank string */ | ||
if(!input) return opts; | ||
@@ -268,4 +269,8 @@ /** Stop parsing anything after a "--" delimiter */ | ||
/** Do nothing if given nothing */ | ||
if(!input || input.length === 0) | ||
return {options: {}, argv: []}; | ||
/** Take a different approach if optdefs aren't specified */ | ||
if(null == optdef) | ||
if(null == optdef || "" === optdef || false === optdef) | ||
return autoOpts(input, config); | ||
@@ -272,0 +277,0 @@ |
{ | ||
"name": "get-options", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "JavaScript's answer to getopts. Simple, obvious, and direct.", | ||
@@ -9,2 +9,3 @@ "keywords": ["CLI", "getopt", "getopts", "options", "argv", "command-line", "configuration", "config"], | ||
"engines": { "node": ">=5.0.0" }, | ||
"files": ["index.js"], | ||
"dependencies": {}, | ||
@@ -11,0 +12,0 @@ "devDependencies": { |
25873
5
475