mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-29 11:32:19 +00:00
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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user