mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Replace - with _ in default target
This commit is contained in:
@@ -17,6 +17,13 @@ describe("tests related to options", function()
|
||||
assert.same({server = "foo"}, args)
|
||||
end)
|
||||
|
||||
it("normalizes default target", function()
|
||||
local parser = Parser()
|
||||
parser:option("--from-server")
|
||||
local args = parser:parse({"--from-server", "foo"})
|
||||
assert.same({from_server = "foo"}, args)
|
||||
end)
|
||||
|
||||
it("handles non-standard charset", function()
|
||||
local parser = Parser()
|
||||
parser:option "/s"
|
||||
|
Reference in New Issue
Block a user