liminix/doc/parse-options-outputs.fnl
2023-11-09 22:14:31 +00:00

11 lines
310 B
Fennel

(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)
(print (.. ".. _" option.name) "\n")
(print option.description)))