aboutsummaryrefslogtreecommitdiff
path: root/module/entry-points/benchmark.scm
blob: 4843a80a91644bb9e3b290f1102bebf716e009e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(define-module (entry-points benchmark)
  :export (main)

  :use-module (ice-9 getopt-long)
  :use-module (util)
  :use-module (vcomponent)
  )


(define opt-spec
  '((file (value #t) (single-char #\f))))

(define (main args)
  (define opts (getopt-long args opt-spec))

  (cond [(option-ref opts 'file #f) => (compose load-calendars* list)]
        [else (load-calendars)]))