sindresorhus / meow

🐈 CLI app helper
MIT License
3.53k stars 150 forks source link

Clean up `description` parsing #256

Closed tommy-mitchell closed 6 months ago

tommy-mitchell commented 6 months ago

Separating out from #252. Updates readme for description and help to match JSDoc, and adds note about defaulting to code 2 (https://github.com/sindresorhus/meow/pull/252#discussion_r1468904645).

Probably shouldn't have written this to begin with:

description &&= help ? redent(`\n${description}\n`, options.helpIndent) : `\n${description}`;
help = `${description || ''}${help}\n`;