@trenskow/arguments-parser 0.3.124 → 0.3.125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -300,7 +300,9 @@ const argumentsParser = (shell) => {
300
300
  .map((keyPath) => [keyPath, keyPaths(options.schema).get(keyPath)])
301
301
  .filter(([keyPath, schema]) => keyPath === args[idx] || `--${caseit(keyPath, 'kebab')}` === args[idx] || (schema.short && `-${schema.short}` === args[idx]))[0] || [];
302
302
 
303
- spent.push(keyPath);
303
+ if (schema && schema.type !== Array) {
304
+ spent.push(keyPath);
305
+ }
304
306
 
305
307
  if (schema && schema.type !== Boolean) {
306
308
  schemas[idx + 1] = schema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/arguments-parser",
3
- "version": "0.3.124",
3
+ "version": "0.3.125",
4
4
  "description": "Yet another arguments parser.",
5
5
  "main": "index.js",
6
6
  "type": "module",