Skip to content
Myr

remove trailing spaces in command help

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Dan Allen · committed by Roman Vanesyan · parent fefda77 · Browse files · 2 files+7 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−5 removed

  • tests:+5 added−3 removed
  • other:+2 added−2 removed

2 files+7 added−5 removed

modified:test/test.command.help.js+5 added-3 removed
modified:index.js+2 added-2 removed
988 unmodified lines
989 return [990 cmd._name991 + (cmd._alias ? '|' + cmd._alias : '')992 + (cmd.options.length ? ' [options]' : '')993 + ' ' + args993 + (args ? ' ' + args : '')994 , cmd._description995 ];996 });997
6 unmodified lines
1004 , ' Commands:'1005 , ''1006 , commands.map(function(cmd) {1007 var desc = cmd[1] ? ' ' + cmd[1] : '';1008 return pad(cmd[0], width) + desc;1008 return (desc ? pad(cmd[0], width) : cmd[0]) + desc;1009 }).join('\n').replace(/^/gm, ' ')1010 , ''1011 ].join('\n');1012};
146 unmodified lines