liminix-fork/doc/parse-options-outputs.fnl

12 lines
310 B
Text
Raw Normal View History

(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)))