@anycli/parser
Advanced tools
Comparing version 3.1.1 to 3.2.0
@@ -0,1 +1,9 @@ | ||
<a name="3.2.0"></a> | ||
# [3.2.0](https://github.com/anycli/parser/compare/85c1e06baa2f10cc1ae3186aec1480a3a543d75c...v3.2.0) (2018-02-03) | ||
### Features | ||
* allow disabling "--" ([66ffd65](https://github.com/anycli/parser/commit/66ffd65)) | ||
<a name="3.1.1"></a> | ||
@@ -2,0 +10,0 @@ ## [3.1.1](https://github.com/anycli/parser/compare/56be8c82683f4b657bdf05ade5db54390abb5d67...v3.1.1) (2018-02-03) |
@@ -12,2 +12,3 @@ import * as args from './args'; | ||
context?: any; | ||
'--'?: boolean; | ||
}; | ||
@@ -14,0 +15,0 @@ export declare function parse<TFlags, TArgs extends { |
@@ -16,2 +16,3 @@ "use strict"; | ||
args: (options.args || []).map((a) => deps_1.deps.args.newArg(a)), | ||
'--': options['--'], | ||
flags: Object.assign({ color: deps_1.deps.flags.defaultFlags.color }, ((options.flags || {}))), | ||
@@ -18,0 +19,0 @@ strict: options.strict !== false, |
@@ -31,2 +31,3 @@ import { Arg } from './args'; | ||
context: any; | ||
'--'?: boolean; | ||
} | ||
@@ -33,0 +34,0 @@ export declare class Parser<T extends ParserInput, TFlags extends OutputFlags<T['flags']>, TArgs extends OutputArgs<T['args']>> { |
@@ -88,3 +88,3 @@ "use strict"; | ||
// attempt to parse as arg | ||
if (input === '--') { | ||
if (this.input['--'] !== false && input === '--') { | ||
parsingFlags = false; | ||
@@ -91,0 +91,0 @@ continue; |
{ | ||
"name": "@anycli/parser", | ||
"description": "arg and flag parser for anycli", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -13,8 +13,8 @@ "bugs": "https://github.com/anycli/parser/issues", | ||
"devDependencies": { | ||
"@anycli/tslint": "^0.2.1", | ||
"@commitlint/cli": "^6.0.5", | ||
"@commitlint/config-conventional": "^6.0.4", | ||
"@anycli/tslint": "^0.2.5", | ||
"@commitlint/cli": "^6.1.0", | ||
"@commitlint/config-conventional": "^6.1.0", | ||
"@heroku/linewrap": "^1.0.0", | ||
"@types/chai": "^4.1.2", | ||
"@types/lodash": "^4.14.99", | ||
"@types/lodash": "^4.14.100", | ||
"@types/mocha": "^2.2.48", | ||
@@ -26,4 +26,4 @@ "@types/nock": "^9.1.2", | ||
"chai": "^4.1.2", | ||
"eslint": "^4.16.0", | ||
"eslint-config-anycli": "^1.3.0", | ||
"eslint": "^4.17.0", | ||
"eslint-config-anycli": "^1.3.2", | ||
"husky": "^0.14.3", | ||
@@ -30,0 +30,0 @@ "mocha": "^5.0.0", |
31755
716