@guanghechen/commander 4.7.7 → 4.7.8
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/CHANGELOG.md +7 -0
- package/README.md +7 -0
- package/lib/cjs/browser.cjs +2715 -1454
- package/lib/cjs/node.cjs +2715 -1454
- package/lib/esm/browser.mjs +2716 -1454
- package/lib/esm/node.mjs +2716 -1454
- package/lib/types/browser.d.ts +190 -125
- package/lib/types/node.d.ts +190 -125
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -376,6 +376,13 @@ await cli.run({ argv: ['--help'], envs: process.env })
|
|
|
376
376
|
当环境变量 `NO_COLOR` 存在时,help 渲染默认视为 `--no-color`;显式传入 `--color`
|
|
377
377
|
可以覆盖这个默认值。
|
|
378
378
|
|
|
379
|
+
`--devmode` 是内建 boolean 选项(默认 `false`)。仅当内建 `--log-level` 启用时:当其为
|
|
380
|
+
`true` 且未显式提供 `--log-level`,默认日志级别会提升为 `debug`。若显式传入
|
|
381
|
+
`--log-level`(包括 preset `opts` 注入),则显式值优先。
|
|
382
|
+
|
|
383
|
+
`devmode` 为保留 option 名,不允许通过 `.option({ long: 'devmode', ... })` 自定义。
|
|
384
|
+
在 `action` 中可通过 `params.builtin.devmode` 读取该内建选项的最终值(始终为 `boolean`)。
|
|
385
|
+
|
|
379
386
|
## Reference
|
|
380
387
|
|
|
381
388
|
- [homepage][homepage]
|