Commits

Jason McKesson committed 5357d23

Fix for a bug when not using -stdext.

Comments (0)

Files changed (3)

 local status, options = pcall(opts.GetOptions, arg)
 
 if(not status) then
+	io.stdout:write(options, "\n")
 	return
 end
 

modules/CmdLineOptions.lua

 	if(not test) then
 		io.stdout:write(msg, "\n")
 		self:DisplayHelp()
-		error("")
+		error("", 0)
 	end
 end
 

modules/GetOptions.lua

 		parseOpts:AssertParse(versionTest[options.version], "The version " .. options.version .. " is not a legal version number.")
 	else
 		--Check to see that no versions are offered.
-		parseOpts:AssertParse(#spec.GetCoreVersions() == 0, "You cannot specify a version for the specification " .. options.spec)
+		parseOpts:AssertParse(#spec.GetCoreVersions() == 0, "You must specify a version for the specification " .. options.spec)
 	end
 	
 	spec.VerifyOptions(options, parseOpts)
 	--Load and collate the extensions.
 	options.extensions = options.extensions or {}
 	options.extfiles = options.extfiles or {}
+	options.stdexts = options.stdexts or {}
 	
 	for _, file in ipairs(options.extfiles) do
 		LoadExtFile(options.extensions, util.ParsePath(file)) --vararg