Skip to content

Commit afae35b

Browse files
committed
Added basic help when PATCH.LUA is run without an argument.
1 parent b54876a commit afae35b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xtra/PATCH.LUA

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,6 @@ local function patch(p)
4242
local ctx=bf:read("*l")if not ctx then print(M)os.exit(1)end
4343
bl=bl+1 if of then of:write(ctx.."\n")ol=ol+1 end end end end end end
4444
pf:close()if h then print("patched")end if bf then writeRemainder()end end
45-
if #arg<1 then os.exit(1)end patch(arg[1])
45+
if #arg<1 then print(arg[-1].." "..arg[0]..[[ diff...
46+
47+
Patch a unified difference file]])os.exit(1)end patch(arg[1])

0 commit comments

Comments
 (0)