mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Updated README; use u
in defmode
as a flag instead of c
This commit is contained in:
@@ -49,6 +49,7 @@ describe("tests related to default values", function()
|
||||
local parser = Parser()
|
||||
parser:option "-o" "--output"
|
||||
:default "a.out"
|
||||
:defmode "unused"
|
||||
local args = parser:parse{}
|
||||
assert.same({output = "a.out"}, args)
|
||||
args = parser:parse{"--output", "foo.txt"}
|
||||
|
Reference in New Issue
Block a user