@optique/core 0.8.8 → 0.8.9-dev.349

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.
package/dist/parser.cjs CHANGED
@@ -178,11 +178,9 @@ function getDocPage(parser, args = []) {
178
178
  const term = usage[i];
179
179
  if (term.type === "exclusive") {
180
180
  const found = findCommandInExclusive(term, arg);
181
- if (found) {
182
- usage.splice(i, 1, ...found);
183
- i += found.length;
184
- } else i++;
185
- } else i++;
181
+ if (found) usage.splice(i, 1, ...found);
182
+ }
183
+ i++;
186
184
  }
187
185
  return {
188
186
  usage,
package/dist/parser.js CHANGED
@@ -178,11 +178,9 @@ function getDocPage(parser, args = []) {
178
178
  const term = usage[i];
179
179
  if (term.type === "exclusive") {
180
180
  const found = findCommandInExclusive(term, arg);
181
- if (found) {
182
- usage.splice(i, 1, ...found);
183
- i += found.length;
184
- } else i++;
185
- } else i++;
181
+ if (found) usage.splice(i, 1, ...found);
182
+ }
183
+ i++;
186
184
  }
187
185
  return {
188
186
  usage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "0.8.8",
3
+ "version": "0.8.9-dev.349+356beecf",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",