summaryrefslogtreecommitdiff
path: root/toreminder.lua
blob: 5fe9e4bd56058b87d3b50e5b87662c13fa3fd1fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env lua
local cal     = require "cal"
local rem     = require "rem"
local common  = require "common"

common.set_verbosity (1)

local main = function (argv)
  local ok, parsed = cal.parse_stdin ()
  if not ok then
    return -1
  end

  local ok = rem.output_calendar (parsed)
  print ""

  return ok and 0 or -1
end

os.exit (main ())