@optique/run 1.3.0-dev.2380 → 1.3.0-dev.2383
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 +2 -0
- package/dist/run.d.cts +8 -0
- package/dist/run.d.ts +8 -0
- package/dist/run.js +2 -0
- package/package.json +4 -4
package/dist/run.cjs
CHANGED
|
@@ -74,6 +74,7 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
74
74
|
const onExit = options.onExit ?? ((exitCode) => node_process.default.exit(exitCode));
|
|
75
75
|
const colors = options.colors ?? node_process.default.stdout.isTTY;
|
|
76
76
|
const maxWidth = options.maxWidth ?? node_process.default.stdout.columns;
|
|
77
|
+
const termWidth = options.termWidth;
|
|
77
78
|
const showDefault = options.showDefault;
|
|
78
79
|
const showChoices = options.showChoices;
|
|
79
80
|
const showUsage = options.showUsage;
|
|
@@ -153,6 +154,7 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
153
154
|
stdout,
|
|
154
155
|
colors,
|
|
155
156
|
maxWidth,
|
|
157
|
+
termWidth,
|
|
156
158
|
showDefault,
|
|
157
159
|
showChoices,
|
|
158
160
|
showUsage,
|
package/dist/run.d.cts
CHANGED
|
@@ -58,6 +58,14 @@ interface RunOptions {
|
|
|
58
58
|
* @default `process.stdout.columns` (auto-detect terminal width)
|
|
59
59
|
*/
|
|
60
60
|
readonly maxWidth?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Width allocated for help terms before descriptions start. Set to
|
|
63
|
+
* `"auto"` to align descriptions after the widest visible term.
|
|
64
|
+
*
|
|
65
|
+
* @default `26`
|
|
66
|
+
* @since 1.3.0
|
|
67
|
+
*/
|
|
68
|
+
readonly termWidth?: number | "auto";
|
|
61
69
|
/**
|
|
62
70
|
* Whether and how to display default values for options and arguments.
|
|
63
71
|
*
|
package/dist/run.d.ts
CHANGED
|
@@ -58,6 +58,14 @@ interface RunOptions {
|
|
|
58
58
|
* @default `process.stdout.columns` (auto-detect terminal width)
|
|
59
59
|
*/
|
|
60
60
|
readonly maxWidth?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Width allocated for help terms before descriptions start. Set to
|
|
63
|
+
* `"auto"` to align descriptions after the widest visible term.
|
|
64
|
+
*
|
|
65
|
+
* @default `26`
|
|
66
|
+
* @since 1.3.0
|
|
67
|
+
*/
|
|
68
|
+
readonly termWidth?: number | "auto";
|
|
61
69
|
/**
|
|
62
70
|
* Whether and how to display default values for options and arguments.
|
|
63
71
|
*
|
package/dist/run.js
CHANGED
|
@@ -73,6 +73,7 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
73
73
|
const onExit = options.onExit ?? ((exitCode) => process.exit(exitCode));
|
|
74
74
|
const colors = options.colors ?? process.stdout.isTTY;
|
|
75
75
|
const maxWidth = options.maxWidth ?? process.stdout.columns;
|
|
76
|
+
const termWidth = options.termWidth;
|
|
76
77
|
const showDefault = options.showDefault;
|
|
77
78
|
const showChoices = options.showChoices;
|
|
78
79
|
const showUsage = options.showUsage;
|
|
@@ -152,6 +153,7 @@ function buildCoreOptions(options, programMetadata) {
|
|
|
152
153
|
stdout,
|
|
153
154
|
colors,
|
|
154
155
|
maxWidth,
|
|
156
|
+
termWidth,
|
|
155
157
|
showDefault,
|
|
156
158
|
showChoices,
|
|
157
159
|
showUsage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/run",
|
|
3
|
-
"version": "1.3.0-dev.
|
|
3
|
+
"version": "1.3.0-dev.2383",
|
|
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.3.0-dev.
|
|
79
|
+
"@optique/core": "1.3.0-dev.2383+4053ebf3"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@optique/config": "1.3.0-dev.
|
|
83
|
-
"@optique/env": "1.3.0-dev.
|
|
82
|
+
"@optique/config": "1.3.0-dev.2383+4053ebf3",
|
|
83
|
+
"@optique/env": "1.3.0-dev.2383+4053ebf3",
|
|
84
84
|
"@types/node": "^24.0.0",
|
|
85
85
|
"fast-check": "^4.7.0",
|
|
86
86
|
"tsdown": "^0.13.0",
|