--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/version.lua Sat Sep 10 07:56:45 2016 +0800
+local hglib = require('hglib')
+local client = hglib.Client.open()
+local code, o, e, d = client:runcommand('version', '--quiet')
+ print(o:match('%(version (%S+)%)'))
+ print("Couldn't get version: " .. e)