@optique/run 0.7.0-dev.150 → 0.7.0-dev.152

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
@@ -81,6 +81,7 @@ function run(parser, options = {}) {
81
81
  const completionConfig = completion ? {
82
82
  mode: typeof completion === "string" ? completion : completion.mode ?? "both",
83
83
  shells: typeof completion === "string" ? void 0 : completion.shells,
84
+ name: typeof completion === "string" ? "both" : completion.name ?? "both",
84
85
  onShow: () => node_process.default.exit(0)
85
86
  } : void 0;
86
87
  return (0, __optique_core_facade.run)(parser, programName, args, {
package/dist/run.d.cts CHANGED
@@ -86,6 +86,7 @@ interface RunOptions {
86
86
  */
87
87
  readonly completion?: "command" | "option" | "both" | {
88
88
  readonly mode?: "command" | "option" | "both";
89
+ readonly name?: "singular" | "plural" | "both";
89
90
  readonly shells?: Record<string, ShellCompletion>;
90
91
  };
91
92
  /**
package/dist/run.d.ts CHANGED
@@ -86,6 +86,7 @@ interface RunOptions {
86
86
  */
87
87
  readonly completion?: "command" | "option" | "both" | {
88
88
  readonly mode?: "command" | "option" | "both";
89
+ readonly name?: "singular" | "plural" | "both";
89
90
  readonly shells?: Record<string, ShellCompletion>;
90
91
  };
91
92
  /**
package/dist/run.js CHANGED
@@ -80,6 +80,7 @@ function run(parser, options = {}) {
80
80
  const completionConfig = completion ? {
81
81
  mode: typeof completion === "string" ? completion : completion.mode ?? "both",
82
82
  shells: typeof completion === "string" ? void 0 : completion.shells,
83
+ name: typeof completion === "string" ? "both" : completion.name ?? "both",
83
84
  onShow: () => process.exit(0)
84
85
  } : void 0;
85
86
  return run$1(parser, programName, args, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/run",
3
- "version": "0.7.0-dev.150+59dd16c2",
3
+ "version": "0.7.0-dev.152+14108c27",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "sideEffects": false,
72
72
  "dependencies": {
73
- "@optique/core": "0.7.0-dev.150+59dd16c2"
73
+ "@optique/core": "0.7.0-dev.152+14108c27"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/node": "^20.19.9",