@kearisp/cli
Advanced tools
Comparing version 2.0.7-dev.0 to 2.0.7-dev.1
@@ -88,11 +88,5 @@ "use strict"; | ||
const nextCommand = commands[i + 1]; | ||
let spread = false; | ||
if (parser.isSpread(command)) { | ||
const name = parser.parseSpreadCommand(command); | ||
const values = []; | ||
while (!parser.eol) { | ||
values.push(parser.part); | ||
parser.next(); | ||
} | ||
args[name] = values; | ||
parser.next(); | ||
spread = true; | ||
} | ||
@@ -180,2 +174,12 @@ else if (parser.isCommand(command)) { | ||
} | ||
if (spread) { | ||
const name = parser.parseSpreadCommand(command); | ||
const values = []; | ||
while (!parser.eol) { | ||
values.push(parser.part); | ||
parser.next(); | ||
} | ||
args[name] = values; | ||
parser.next(); | ||
} | ||
} | ||
@@ -182,0 +186,0 @@ if (!parser.eol) { |
{ | ||
"name": "@kearisp/cli", | ||
"version": "2.0.7-dev.0", | ||
"version": "2.0.7-dev.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Kris Papercut <krispcut@gmail.com>", |
47792
1184