mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Custom target should not affect usage and help message generation
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user