Skip to content

Commit 450ba44

Browse files
committed
Added shebang and fixed formatting in BASE64.LUA
1 parent f79f7f1 commit 450ba44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

util/BASE64.LUA

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env lua
12

23
-- b64c = base64 characters
34
-- dt = decode table
@@ -110,10 +111,9 @@ function base64_decode_file(file)
110111
end
111112

112113
if #arg < 1 or #arg > 2 then
113-
print([[Usage: lua base64.lua [-e|-d] [file]
114-
-e: encode (default)
115-
-d: decode")
116-
file: input file (default: stdin)]])
114+
print(arg[0] .. [[ [-e|-d] [file]
115+
-e: encode (default)
116+
-d: decode"]])
117117
os.exit(1)
118118
end
119119

0 commit comments

Comments
 (0)