@optique/core 1.0.0-dev.1693 → 1.0.0-dev.1695

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.
@@ -571,7 +571,7 @@ function createExclusiveComplete(parsers, options, noMatchContext, mode) {
571
571
  if (candidateIndex < 0) candidateIndex = i$1;
572
572
  if (candidateCount > 1) break;
573
573
  }
574
- if (candidateCount === 1 && candidateIndex >= 0 && exec?.phase !== "parse" && exec?.phase !== "suggest") {
574
+ if (candidateCount === 1 && candidateIndex >= 0 && (parsers[candidateIndex].$mode === "sync" || exec?.phase !== "parse" && exec?.phase !== "suggest")) {
575
575
  const p = parsers[candidateIndex];
576
576
  const parseResult = await p.parse({
577
577
  ...emptyCtx,
@@ -571,7 +571,7 @@ function createExclusiveComplete(parsers, options, noMatchContext, mode) {
571
571
  if (candidateIndex < 0) candidateIndex = i$1;
572
572
  if (candidateCount > 1) break;
573
573
  }
574
- if (candidateCount === 1 && candidateIndex >= 0 && exec?.phase !== "parse" && exec?.phase !== "suggest") {
574
+ if (candidateCount === 1 && candidateIndex >= 0 && (parsers[candidateIndex].$mode === "sync" || exec?.phase !== "parse" && exec?.phase !== "suggest")) {
575
575
  const p = parsers[candidateIndex];
576
576
  const parseResult = await p.parse({
577
577
  ...emptyCtx,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.0.0-dev.1693+e2748d7a",
3
+ "version": "1.0.0-dev.1695+f0ab0347",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",