Commits

Jason McKesson  committed 878efa8

Better error handling. No printing of error-like messages when there are parse errors.

  • Participants
  • Parent commits b8c004e

Comments (0)

Files changed (1)

 local opts = require "GetOptions"
 local gen = require "Generate"
 
-local options = opts.GetOptions(arg)
+local status, options = pcall(opts.GetOptions, arg)
 
---[[{
-	"test",
-	"-spec=gl",
-	"-extfile=exts.txt",
-	"-version=3.3",
-	"-profile=core",
-}]]
+if(not status) then
+	return
+end
 
 gen.Generate(options)
 
 
---[[
-local writer = require "tablewriter"
-writer.WriteTable(io.stdout, options)
-]]