summaryrefslogtreecommitdiff
path: root/tex/context/base/trac-log.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-04-17 22:37:00 +0200
committerHans Hagen <pragma@wxs.nl>2012-04-17 22:37:00 +0200
commit4833d4fc12d57cde9d0b70ff60ff6417b722b38d (patch)
tree43cebd2b1df7d4a76a4a2c9dce0e2358296ffbee /tex/context/base/trac-log.lua
parent3159b11716778db5ba410914225bfdb6661f292d (diff)
downloadcontext-4833d4fc12d57cde9d0b70ff60ff6417b722b38d.tar.gz
beta 2012.04.17 22:37
Diffstat (limited to 'tex/context/base/trac-log.lua')
-rw-r--r--tex/context/base/trac-log.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/tex/context/base/trac-log.lua b/tex/context/base/trac-log.lua
index c1d890276..44de8ebe6 100644
--- a/tex/context/base/trac-log.lua
+++ b/tex/context/base/trac-log.lua
@@ -536,6 +536,13 @@ local function reportbanner(t)
end
end
+local function reportversion(t)
+ local banner = t.banner
+ if banner then
+ t.report(banner)
+ end
+end
+
local function reporthelp(t,...)
local helpinfo = t.helpinfo
if type(helpinfo) == "string" then
@@ -562,6 +569,7 @@ function logs.application(t)
t.report = logs.reporter(t.name)
t.help = function(...) reportbanner(t) ; reporthelp(t,...) ; reportinfo(t) end
t.identify = function() reportbanner(t) end
+ t.version = function() reportversion(t) end
return t
end