@optique/run 1.4.0-dev.2740 → 1.4.0-dev.2749

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/run.cjs CHANGED
@@ -1,6 +1,7 @@
1
1
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  const require_output = require('./output.cjs');
3
3
  const require_terminal = require('./terminal.cjs');
4
+ const __optique_core_internal_help_request = require_rolldown_runtime.__toESM(require("@optique/core/internal/help-request"));
4
5
  const __optique_core_internal_terminal = require_rolldown_runtime.__toESM(require("@optique/core/internal/terminal"));
5
6
  const __optique_core_facade = require_rolldown_runtime.__toESM(require("@optique/core/facade"));
6
7
  const node_process = require_rolldown_runtime.__toESM(require("node:process"));
@@ -186,10 +187,12 @@ function buildCoreOptions(options, programMetadata) {
186
187
  return onExit(errorExitCode);
187
188
  }
188
189
  };
190
+ const helpRequest = (0, __optique_core_internal_help_request.getHelpRequest)(options);
191
+ const requestedCoreOptions = helpRequest == null ? coreOptions : (0, __optique_core_internal_help_request.withHelpRequest)(coreOptions, helpRequest);
189
192
  return {
190
193
  programName,
191
194
  args,
192
- coreOptions: options.maxWidth == null ? (0, __optique_core_internal_terminal.withAutomaticWidth)(coreOptions) : coreOptions
195
+ coreOptions: options.maxWidth == null ? (0, __optique_core_internal_terminal.withAutomaticWidth)(requestedCoreOptions) : requestedCoreOptions
193
196
  };
194
197
  }
195
198
  function runImpl(parserOrProgram, options = {}) {
package/dist/run.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { writeOutput } from "./output.js";
2
2
  import { detectColorSupport, detectTerminalWidth, readEnvironmentVariable } from "./terminal.js";
3
+ import { getHelpRequest, withHelpRequest } from "@optique/core/internal/help-request";
3
4
  import { withAutomaticWidth } from "@optique/core/internal/terminal";
4
5
  import { runParser, runWith, runWithSync } from "@optique/core/facade";
5
6
  import process from "node:process";
@@ -185,10 +186,12 @@ function buildCoreOptions(options, programMetadata) {
185
186
  return onExit(errorExitCode);
186
187
  }
187
188
  };
189
+ const helpRequest = getHelpRequest(options);
190
+ const requestedCoreOptions = helpRequest == null ? coreOptions : withHelpRequest(coreOptions, helpRequest);
188
191
  return {
189
192
  programName,
190
193
  args,
191
- coreOptions: options.maxWidth == null ? withAutomaticWidth(coreOptions) : coreOptions
194
+ coreOptions: options.maxWidth == null ? withAutomaticWidth(requestedCoreOptions) : requestedCoreOptions
192
195
  };
193
196
  }
194
197
  function runImpl(parserOrProgram, options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/run",
3
- "version": "1.4.0-dev.2740",
3
+ "version": "1.4.0-dev.2749",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",
@@ -76,11 +76,11 @@
76
76
  },
77
77
  "sideEffects": false,
78
78
  "dependencies": {
79
- "@optique/core": "1.4.0-dev.2740+fe673463"
79
+ "@optique/core": "1.4.0-dev.2749+6d558083"
80
80
  },
81
81
  "devDependencies": {
82
- "@optique/config": "1.4.0-dev.2740+fe673463",
83
- "@optique/env": "1.4.0-dev.2740+fe673463",
82
+ "@optique/config": "1.4.0-dev.2749+6d558083",
83
+ "@optique/env": "1.4.0-dev.2749+6d558083",
84
84
  "@types/node": "^24.0.0",
85
85
  "fast-check": "^4.7.0",
86
86
  "tsdown": "^0.13.0",