mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Change error messages for missing elements
* For arguments: "argument 'foo' is required" -> "missing argument 'foo'" * For options: "option '--foo' must be used at least 1 time" -> "missing option '--foo'"
This commit is contained in:
@@ -20,7 +20,7 @@ describe("tests related to CLI behaviour #unsafe", function()
|
||||
assert.equal([[
|
||||
Usage: ]]..script..[[ [-v] [-h] <input> [<command>] ...
|
||||
|
||||
Error: argument 'input' is required
|
||||
Error: missing argument 'input'
|
||||
]], get_output(""))
|
||||
end)
|
||||
|
||||
@@ -62,7 +62,7 @@ Did you mean 'install'?
|
||||
assert.equal([[
|
||||
Usage: ]]..script..[[ install [-f <from>] [-h] <rock> [<version>]
|
||||
|
||||
Error: argument 'rock' is required
|
||||
Error: missing argument 'rock'
|
||||
]], get_output("foo install"))
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user