Skip to content

Commit 0cfff4e

Browse files
committed
Update example.lua to pass arg to cli:parse
1 parent 0a65b42 commit 0cfff4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/00_general.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cli:set_name("cli_example.lua")
3232
cli:add_flag("--verbose", "the script output will be very verbose")
3333

3434
-- Parses from _G['arg']
35-
local args = cli:parse_args()
35+
local args = cli:parse(arg)
3636

3737
if not args then
3838
-- something wrong happened and an error was printed

0 commit comments

Comments
 (0)