ms-vite-plugin 1.1.0 → 1.1.1
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/cli.js +6 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -352,7 +352,12 @@ function renderDetailedCommandHelp() {
|
|
|
352
352
|
continue;
|
|
353
353
|
}
|
|
354
354
|
for (const opt of cmd.options) {
|
|
355
|
-
const
|
|
355
|
+
const defaultText = opt.defaultValue !== undefined && opt.defaultValue !== null
|
|
356
|
+
? ` (默认: ${String(opt.defaultValue)})`
|
|
357
|
+
: "";
|
|
358
|
+
const desc = opt.description
|
|
359
|
+
? ` ${opt.description}${defaultText}`
|
|
360
|
+
: defaultText;
|
|
356
361
|
lines.push(` ${opt.flags}${desc}`);
|
|
357
362
|
}
|
|
358
363
|
}
|