@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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.7.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Refine commander parsing and diagnostics flows by modularizing command stages and internal
8
+ orchestration, while aligning specs and tests with the new structure.
9
+
3
10
  ## 4.7.7
4
11
 
5
12
  ### Patch Changes
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]