X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d78792f51535f469f4ba55b9ff8fa874c5fd34e0..3c9ed0e1808f63fa234bb24e558bbf0d2fc42b62:/client/scripts/htmldump.lua diff --git a/client/scripts/htmldump.lua b/client/scripts/htmldump.lua index e9d35443..e6c1393b 100644 --- a/client/scripts/htmldump.lua +++ b/client/scripts/htmldump.lua @@ -3,9 +3,9 @@ getopt = require('getopt') bin = require('bin') -example = "script run 14araw -x 6000F57b" +example = "script run htmldump -o mifarecard_foo.html" author = "Martin Holst Swende" -usage = "script run htmldump [-f ]" +usage = "script run htmldump [-i ] [-o ]" desc =[[ This script takes a dumpfile and produces a html based dump, which is a bit more easily analyzed. @@ -65,7 +65,6 @@ end local function main(args) - print(desc) local input = "dumpdata.bin" local output = os.date("%Y-%m-%d_%H%M%S.html"); for o, a in getopt.getopt(args, 'i:o:h') do @@ -77,7 +76,7 @@ local function main(args) local infile = io.open(input, "r") if infile == nil then - return ("Could not read file ", input) + return oops("Could not read file ", input) end --lokal skel = require("skel") local dumpdata = readdump(infile)