@oclif/core 4.0.26 → 4.0.27

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.
@@ -169,7 +169,8 @@ class CommandHelp extends formatter_1.HelpFormatter {
169
169
  if (noChar)
170
170
  left = left.replace(' ', '');
171
171
  let right = flag.summary || flag.description || '';
172
- if (flag.type === 'option' && flag.default) {
172
+ const canBeCached = !(this.opts.respectNoCacheDefault === true && flag.noCacheDefault === true);
173
+ if (flag.type === 'option' && flag.default && canBeCached) {
173
174
  right = `${(0, theme_1.colorize)(this.config?.theme?.flagDefaultValue, `[default: ${flag.default}]`)} ${right}`;
174
175
  }
175
176
  if (flag.required)
@@ -24,6 +24,10 @@ export interface HelpOptions {
24
24
  */
25
25
  hideCommandSummaryInDescription?: boolean;
26
26
  maxWidth: number;
27
+ /**
28
+ * Respect the `noCacheDefault` property on flags. Defaults to false.
29
+ */
30
+ respectNoCacheDefault?: boolean;
27
31
  /**
28
32
  * Only show the help for the specified sections. Defaults to all sections.
29
33
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/core",
3
3
  "description": "base library for oclif CLIs",
4
- "version": "4.0.26",
4
+ "version": "4.0.27",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {