Comparing version 1.0.20 to 1.0.21
@@ -138,2 +138,3 @@ export declare type ArgumentValue = any; | ||
private consumeVariadicArguments; | ||
private consumeSingleArgument; | ||
/** | ||
@@ -140,0 +141,0 @@ * To be called at the end of parsing, checks that all required options have been |
@@ -380,6 +380,6 @@ "use strict"; | ||
else { | ||
argValue = q.shift(); | ||
argValue = this.consumeSingleArgument(q); | ||
} | ||
} | ||
else { | ||
if (argValue === undefined) { | ||
if (arg.variadic) { | ||
@@ -413,2 +413,8 @@ argValue = []; | ||
} | ||
consumeSingleArgument(q) { | ||
if (q[0] && token_parser_1.TokenParser.isOptionName(q[0])) { | ||
return undefined; | ||
} | ||
return q.shift(); | ||
} | ||
/** | ||
@@ -415,0 +421,0 @@ * To be called at the end of parsing, checks that all required options have been |
{ | ||
"name": "cilly", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "The last library you'll ever need for building intuitive, robust and flexible CLI tools with Node.js and TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
77346
1187