From d26baaa2d38a45380ecfb970c52546ecb35ad6cf Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Wed, 30 May 2018 19:50:47 -0700 Subject: [PATCH] fix: trim descriptions --- src/command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.ts b/src/command.ts index 3445b60a..51e9911b 100644 --- a/src/command.ts +++ b/src/command.ts @@ -68,7 +68,7 @@ export default class CommandHelp { if (!description) return return [ bold('DESCRIPTION'), - indent(wrap(description, this.opts.maxWidth - 2, {trim: false, hard: true}), 2), + indent(wrap(description.trim(), this.opts.maxWidth - 2, {trim: false, hard: true}), 2), ].join('\n') }