20:1820a85e8c42
Anton Shestakov <av6@dwimlabs.net>, Sat, 10 Sep 2016 10:41:17 +0800
hglib: at least try to be more 5.2-friendly

next change 25:7af20c4b0579
previous change 17:265967da3bcb

examples/version.lua

Permissions: -rw-r--r--

Other formats: Feeds:
local hglib = require('hglib')
local client = hglib.Client.open()
local code, o, e, d = client:runcommand('version', '--quiet')
client:close()
if code == 0 then
print(o:match('%(version (%S+)%)'))
else
print("Couldn't get version: " .. e)
end
if #d > 0 then
print('Debug: ')
end