diff options
Diffstat (limited to 'src/lpm.lua')
-rw-r--r-- | src/lpm.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index 2c66de1..db1a953 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -2174,7 +2174,9 @@ not commonly used publically. -- Small utility functions that don't play into the larger app; are used for testing -- or for handy scripts. if ARGS[2] == "test" then - rawset(_G, "arg", common.slice(ARGS, 4)) + local arg = common.slice(ARGS, 4) + arg[0] = ARGS[1] + rawset(_G, "arg", arg) dofile(ARGS[3]) os.exit(0) end |