]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/scripts/htmldump.lua
fixed some more compiler warnings
[proxmark3-svn] / client / scripts / htmldump.lua
index e9d35443375ecba80cae216a665f74544d3218fe..e6c1393b0ff86b31d90b3132e390cea07df7e34b 100644 (file)
@@ -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 <file>]"
+usage = "script run htmldump [-i <file>] [-o <file>]"
 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)
Impressum, Datenschutz