Skip to content

Commit

Permalink
Remove line after Arguments title in help (#1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Sep 24, 2020
1 parent 3998dd6 commit 9236449
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion index.js
Expand Up @@ -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));
});
Expand Down
2 changes: 1 addition & 1 deletion tests/command.help.test.js
Expand Up @@ -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
});

0 comments on commit 9236449

Please sign in to comment.