package fmt
OCaml Format pretty-printer combinators
Install
Dune Dependency
Authors
Maintainers
Sources
fmt-0.8.6.tbz
sha256=36f6a18e9b7d1fc4711e9ea9ca45911bc88106b8f9a0887f5381e3fd7e2c9cca
md5=5407789e5f0ea42272ca19353b1abfd3
doc/fmt.cli/Fmt_cli/index.html
Module Fmt_cli
Cmdliner
support for Fmt
.
v0.8.6 - homepage
Option for setting the style renderer
val style_renderer :
?env:Cmdliner.Arg.env ->
?docs:string ->
unit ->
Fmt.style_renderer option Cmdliner.Term.t
style_renderer ?env ?docs ()
is a Cmdliner
option --color
that can be directly used with the optional arguments of TTY setup or to control style rendering. The option is documented under docs
(defaults to the default in Cmdliner.Arg.info
).
The option is a tri-state enumerated value that when used with TTY setup takes over the automatic setup:
--color=never
, the value isSome `None
, forces no styling.--color=always
, the value isSome `Ansi
, forces ANSI styling.--color=auto
or absent, the value isNone
, automatic setup takes place.
If env
is provided, the option default value (None
) can be overridden by the corresponding environment variable.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page