Adding a blank line after the epilog on generated help. Makes for slightly more readable output.

This commit is contained in:
mark_story 2010-10-18 22:37:57 -04:00
parent df55c08133
commit 6f29441ff9
2 changed files with 2 additions and 0 deletions

View file

@ -533,6 +533,7 @@ class ConsoleOptionParser {
}
if (!empty($this->_epilog)) {
$out[] = String::wrap($this->_epilog, $width);
$out[] = '';
}
return implode("\n", $out);
}

View file

@ -501,6 +501,7 @@ cake mycommand [-h] [--test] <model>
model The model to make.
epilog text
TEXT;
$this->assertEquals($expected, $result, 'Help is wrong.');
}