@anycli/parser
Advanced tools
Comparing version 3.2.4 to 3.2.5
@@ -0,1 +1,9 @@ | ||
<a name="3.2.5"></a> | ||
## [3.2.5](https://github.com/anycli/parser/compare/595a4faa0a0377bec9e9e630ea53db20c0eea735...v3.2.5) (2018-02-05) | ||
### Bug Fixes | ||
* remove optionType ([15bb0d0](https://github.com/anycli/parser/commit/15bb0d0)) | ||
<a name="3.2.4"></a> | ||
@@ -2,0 +10,0 @@ ## [3.2.4](https://github.com/anycli/parser/compare/840676d3d18cc0b7b128212c3fec77f8396cfde2...v3.2.4) (2018-02-05) |
@@ -26,3 +26,2 @@ import { AlphabetLowercase, AlphabetUppercase } from './alphabet'; | ||
type: 'option'; | ||
optionType: string; | ||
helpValue?: string; | ||
@@ -29,0 +28,0 @@ default?: T | ((context: DefaultContext<T>) => T | undefined); |
@@ -15,3 +15,2 @@ "use strict"; | ||
exports.integer = build({ | ||
optionType: 'integer', | ||
parse: input => { | ||
@@ -24,6 +23,6 @@ if (!/^[0-9]+$/.test(input)) | ||
function option(options) { | ||
return build(Object.assign({ optionType: 'custom' }, options))(); | ||
return build(options)(); | ||
} | ||
exports.option = option; | ||
const stringFlag = build({ optionType: 'string' }); | ||
const stringFlag = build({}); | ||
exports.string = stringFlag; | ||
@@ -30,0 +29,0 @@ exports.defaultFlags = { |
{ | ||
"name": "@anycli/parser", | ||
"description": "arg and flag parser for anycli", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/anycli/parser/issues", |
34850
780