2023-11-09 23:12:29 +01:00
|
|
|
(local yaml (require :lyaml))
|
|
|
|
|
|
|
|
;; (local { : view } (require :fennel))
|
|
|
|
|
|
|
|
(local outputs (collect [k v (ipairs arg)]
|
|
|
|
(values v true)))
|
|
|
|
|
|
|
|
(each [_ option (ipairs (yaml.load (io.read "*a")))]
|
|
|
|
(when (. outputs option.name)
|
2023-11-10 00:02:35 +01:00
|
|
|
(print (.. ".. _" (string.gsub option.name "%." "-") ":") "\n")
|
2023-11-09 23:12:29 +01:00
|
|
|
(print option.description)))
|