aboutsummaryrefslogtreecommitdiff
path: root/doc/ref/general/options.texi
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-09-12 23:51:26 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-09-12 23:51:26 +0200
commit0fac96af120a47ed686c26745af50288086e22d3 (patch)
treecc473903a4ddd3a563f2f821770b4fa329383b3a /doc/ref/general/options.texi
parentFurther doc work. (diff)
downloadcalp-0fac96af120a47ed686c26745af50288086e22d3.tar.gz
calp-0fac96af120a47ed686c26745af50288086e22d3.tar.xz
Even more documentation.next
Diffstat (limited to 'doc/ref/general/options.texi')
-rw-r--r--doc/ref/general/options.texi32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/ref/general/options.texi b/doc/ref/general/options.texi
new file mode 100644
index 00000000..675e91f3
--- /dev/null
+++ b/doc/ref/general/options.texi
@@ -0,0 +1,32 @@
+@node Getopt-Long Extensions
+@section Getopt-Long extensions
+
+The module @code{(hnh util options)} extend Guile's
+@code{(ice-9 getopt-long)}. The extra keys which can be specified on
+an option are
+
+@table @samp
+@item (description string)
+A propper description of the value. Should be written for human
+consumption.
+
+@item (value value-spec)
+Value is from the core library, but here ...
+@c TODO document me
+@end table
+
+@defun getopt-opt options
+Remove extensions from @var{options}, turning it into a structure
+which can be passed to @code{getopt-long}.
+@end defun
+
+@defun format-arg-help options
+Pretty print an option summary.
+
+Each description will be parsed as XML and then fed through our markup
+system @xref{Markup}.
+@end defun
+
+@defun print-arg-help options [port=(current-error-port)]
+Formats and prints option spec.
+@end defun