liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f20d1cfc01ff2b42a19771b65d4549e171fa6c4b
parent e039783e67d2773b73963a7a30b338ac5b9f8130
Author: Daniel Barlow <dan@telent.net>
Date:   Sat, 12 Aug 2023 18:16:20 +0100

print description only if present

Diffstat:
Mdoc/parse-options.fnl | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/parse-options.fnl b/doc/parse-options.fnl @@ -61,7 +61,8 @@ (fn print-service [o] (print (.. " * service ``" o.name "``")) - (print (indent 4 (or (extract-text o.description) "(no description)"))) + (match (extract-text o.description) + descr (print (indent 4 descr))) (print) (print (indent 4 "**Service parameters**\n")) (each [_ param (ipairs o.parameters)]