diff --git a/index.js b/index.js index c1b67b7b2..c3ad03fe5 100644 --- a/index.js +++ b/index.js @@ -1576,7 +1576,6 @@ Read more on https://git.io/JJc0W`); const columns = process.stdout.columns || 80; const descriptionWidth = columns - width - 5; desc.push('Arguments:'); - desc.push(''); this._args.forEach((arg) => { desc.push(' ' + pad(arg.name, width) + ' ' + wrap(argsDescription[arg.name] || '', descriptionWidth, width + 4)); }); diff --git a/tests/command.help.test.js b/tests/command.help.test.js index 32c58b329..65ba1f572 100644 --- a/tests/command.help.test.js +++ b/tests/command.help.test.js @@ -156,5 +156,5 @@ test('when arguments described then included in helpInformation', () => { .helpOption(false) .description('description', { file: 'input source' }); const helpInformation = program.helpInformation(); - expect(helpInformation).toMatch(/Arguments:\n\n +file +input source/); // [sic], extra line + expect(helpInformation).toMatch(/Arguments:\n +file +input source/); // [sic], extra line });