@oclif/core 1.16.5 → 1.16.7

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.
@@ -138,15 +138,14 @@ class CommandHelp extends formatter_1.HelpFormatter {
138
138
  description = (cmd.description || '').split(POSSIBLE_LINE_FEED).slice(1);
139
139
  }
140
140
  else if (cmd.description) {
141
- description = [
142
- ...(cmd.summary || '').split(POSSIBLE_LINE_FEED),
141
+ const summary = cmd.summary ? `${cmd.summary}\n` : null;
142
+ description = summary ? [
143
+ ...summary.split(POSSIBLE_LINE_FEED),
143
144
  ...(cmd.description || '').split(POSSIBLE_LINE_FEED),
144
- ];
145
+ ] : (cmd.description || '').split(POSSIBLE_LINE_FEED);
145
146
  }
146
147
  if (description) {
147
- // Lines separated with only one newline or more than 2 can be hard to read in the terminal.
148
- // Always separate by two newlines.
149
- return this.wrap((0, util_1.compact)(description).join('\n\n'));
148
+ return this.wrap(description.join('\n'));
150
149
  }
151
150
  }
152
151
  aliases(aliases) {
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": "1.16.5",
4
+ "version": "1.16.7",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {