This commit is contained in:
Jason Perkins 2015-04-04 11:20:50 -04:00
commit 1478c4064b
2 changed files with 15 additions and 0 deletions

View File

@ -1053,6 +1053,12 @@
description = "Display this information"
}
newoption
{
trigger = "verbose",
description = "Generate extra debug text output"
}
newoption
{
trigger = "interactive",

View File

@ -211,3 +211,12 @@
function printf(msg, ...)
print(string.format(msg, unpack(arg)))
end
--
-- A shortcut for printing formatted output in verbose mode.
--
function verbosef(msg, ...)
if _OPTIONS.verbose then
print(string.format(msg, ...))
end
end