Custom target should not affect usage and help message generation

This commit is contained in:
mpeterv
2014-08-25 13:51:08 +04:00
parent b02536d6ba
commit bd5fd00e6c
4 changed files with 8 additions and 8 deletions

View File

@@ -85,11 +85,11 @@ describe("tests related to help message generation", function()
parser:option "--config"
assert.equal(table.concat({
"Usage: foo [-q] --from <server> [--config <config>] [-h]",
"Usage: foo [-q] --from <from> [--config <config>] [-h]",
"",
"Options: ",
" -q, --quiet",
" --from <server>",
" --from <from>",
" --config <config>",
" -h, --help Show this help message and exit. "
}, "\r\n"), parser:get_help())