@oclif/core 4.7.1 → 4.7.2

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.
@@ -88,7 +88,7 @@ class CommandHelp extends formatter_1.HelpFormatter {
88
88
  const cmd = this.command;
89
89
  let description;
90
90
  if (this.opts.hideCommandSummaryInDescription) {
91
- description = (cmd.description || '').split(POSSIBLE_LINE_FEED).slice(1);
91
+ description = [(cmd.description || '').split(POSSIBLE_LINE_FEED).at(-1) ?? ''];
92
92
  }
93
93
  else if (cmd.description) {
94
94
  const summary = cmd.summary ? `${cmd.summary}\n` : null;
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.7.1",
4
+ "version": "4.7.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {