You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running --help for a command, a long description (with paragraphs) adds an extra newline per line. This was working as expected in oclif@v1.
To Reproduce
const { Command } = require('@oclif/core')
class MobyDickCommand extends Command {
async run () {
this.log('Do nothing')
}
}
MobyDickCommand.description = `Call me Ishmael.
Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to
interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way
I have of driving off the spleen and regulating the circulation.
Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November in my soul; whenever
I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet;
and especially whenever my hypos get such an upper hand of me, that it requires a strong moral principle to prevent
me from deliberately stepping into the street, and methodically knocking people’s hats off—then, I account it high
time tozz get to sea as soon as I can.
This is my substitute for pistol and ball. With a philosophical flourish Cato throws himself upon his sword;
I quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in
their degree, some time or other, cherish very nearly the same feelings towards the ocean with me.
`
module.exports = MobyDickCommand
Steps to reproduce the behavior:
Call the command above with a --help flag
Take note of the DESCRIPTION section
Expected behavior
DESCRIPTION Output:
DESCRIPTION
Call me Ishmael.
Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to
interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way
I have of driving off the spleen and regulating the circulation.
Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November in my soul; whenever
I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet;
and especially whenever my hypos get such an upper hand of me, that it requires a strong moral principle to prevent
me from deliberately stepping into the street, and methodically knocking people’s hats off—then, I account it high
time tozz get to sea as soon as I can.
This is my substitute for pistol and ball. With a philosophical flourish Cato throws himself upon his sword;
I quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in
their degree, some time or other, cherish very nearly the same feelings towards the ocean with me.
Actual behavior
DESCRIPTION Output:
DESCRIPTION
Call me Ishmael.
Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to
interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way
I have of driving off the spleen and regulating the circulation.
Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November in my soul; whenever
I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet;
and especially whenever my hypos get such an upper hand of me, that it requires a strong moral principle to prevent
me from deliberately stepping into the street, and methodically knocking people’s hats off—then, I account it high
time tozz get to sea as soon as I can.
This is my substitute for pistol and ball. With a philosophical flourish Cato throws himself upon his sword;
I quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in
their degree, some time or other, cherish very nearly the same feelings towards the ocean with me.
Environment (please complete the following information):
OS & version: macOS 12.5.1
Shell/terminal & version: zsh
The text was updated successfully, but these errors were encountered:
Describe the bug
When running
--help
for a command, a long description (with paragraphs) adds an extra newline per line. This was working as expected in oclif@v1.To Reproduce
Steps to reproduce the behavior:
--help
flagDESCRIPTION
sectionExpected behavior
DESCRIPTION Output:
Actual behavior
DESCRIPTION Output:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: