Pad long usage messages

Long usage messages are split into lines. A margin is added so that they line up under "Usage: " part of the message.
This commit is contained in:
mpeterv
2014-02-18 13:28:06 +04:00
parent ccad58ef50
commit 07af666206
3 changed files with 23 additions and 11 deletions

View File

@@ -44,7 +44,8 @@ describe("tests related to help message generation", function()
:args "*"
assert.equal(table.concat({
"Usage: foo [-h] <first> <second-and-third> <second-and-third> [<maybe-fourth>] [<others>] ...",
"Usage: foo [-h] <first> <second-and-third> <second-and-third>",
" [<maybe-fourth>] [<others>] ...",
"",
"Arguments: ",
" first",