optionator
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -0,3 +1,6 @@ | ||
# 0.7.1 | ||
- fix bug with use of `defaults` and `concatRepeatedArrays` or `mergeRepeatedObjects` | ||
# 0.7.0 | ||
- added `concatRepeatedArrays` option: `oneValuePerFlag`, only allows one array value per flag | ||
- added `concatrepeatedarrays` option: `oneValuePerFlag`, only allows one array value per flag | ||
- added `typeAliases` option | ||
@@ -4,0 +7,0 @@ - added `parseArgv` which takes an array and parses with the first two items sliced off |
// Generated by LiveScript 1.4.0 | ||
(function(){ | ||
var VERSION, ref$, id, map, compact, any, groupBy, partition, chars, isItNaN, keys, Obj, camelize, deepIs, closestString, nameToRaw, dasherize, naturalJoin, generateHelp, generateHelpForOption, parsedTypeCheck, parseType, parseLevn, camelizeKeys, parseString, main, toString$ = {}.toString, slice$ = [].slice; | ||
VERSION = '0.7.0'; | ||
VERSION = '0.7.1'; | ||
ref$ = require('prelude-ls'), id = ref$.id, map = ref$.map, compact = ref$.compact, any = ref$.any, groupBy = ref$.groupBy, partition = ref$.partition, chars = ref$.chars, isItNaN = ref$.isItNaN, keys = ref$.keys, Obj = ref$.Obj, camelize = ref$.camelize; | ||
@@ -40,4 +40,8 @@ deepIs = require('deep-is'); | ||
libOptions.defaults == null && (libOptions.defaults = {}); | ||
libOptions.defaults.concatRepeatedArrays = libOptions.concatRepeatedArrays; | ||
libOptions.defaults.mergeRepeatedObjects = libOptions.mergeRepeatedObjects; | ||
if (libOptions.concatRepeatedArrays != null) { | ||
libOptions.defaults.concatRepeatedArrays = libOptions.concatRepeatedArrays; | ||
} | ||
if (libOptions.mergeRepeatedObjects != null) { | ||
libOptions.defaults.mergeRepeatedObjects = libOptions.mergeRepeatedObjects; | ||
} | ||
traverse = function(options){ | ||
@@ -44,0 +48,0 @@ var i$, len$, option, name, k, ref$, v, type, that, e, parsedPossibilities, parsedType, j$, len1$, possibility, rawDependsType, dependsOpts, dependsType, cra, alias, shortNames, longNames; |
{ | ||
"name": "optionator", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"author": "George Zahariev <z@georgezahariev.com>", | ||
@@ -5,0 +5,0 @@ "description": "option parsing and help generation", |
@@ -6,4 +6,2 @@ # Optionator | ||
Site: http://gkz.github.io/optionator/ | ||
For an online demo, check out the [Grasp online demo](http://www.graspjs.com/#demo). | ||
@@ -29,3 +27,3 @@ | ||
MIT license. Version 0.7.0 | ||
MIT license. Version 0.7.1 | ||
@@ -32,0 +30,0 @@ npm install optionator |
61263
1275
237