package reason
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=17ead4c2864af7273f56d0ad62c4564be2eade76d3da87b1d381ed5b44f466cb
sha512=31c1c0752c426e3a55a9f8eceb157de3536e5a72385a645112236129f2f1ac04e4df42ba2c82616eacc339b4627725e1472903fd4c56c44024cba7635f2602cb
doc/reason.cmdliner/Vendored_cmdliner/Manpage/index.html
Module Vendored_cmdliner.ManpageSource
Man page specification.
Man page generation is automatically handled by Cmdliner. The block type is used to define a man page's content.
The print function can be useful if the client wants to define other man pages (e.g. to implement a help command).
Man pages
The type for a block of man page text.
`S sintroduces a new sections.`P tis a new paragraph with textt.`Pre tis a new preformatted paragraph with textt.`I (l,t)is an indented paragraph with labelland textt.`Noblanksuppresses the blank line introduced between two blocks.
Except in `Pre, whitespace and newlines are not significant and are all collapsed to a single space. In labels l and text strings t, the syntax "$(i,italic text)" and "$(b,bold text)" can be used to respectively produce italic and bold text.
The type for man page titles. Describes the man page title, section, center_footer, left_footer, center_header.
The type for a man page. A title and the page text as a list of blocks.
val print :
?subst:(string -> string) ->
[ `Pager | `Plain | `Groff ] ->
Format.formatter ->
t ->
unitprint ~subst fmt ppf page prints page on ppf in the format fmt. If fmt is `Pager the function tries to write the formatted result in a pager, if that fails the format `Plain is written on ppf. subst can be used to perform variable substitution, see Buffer.add_substitute (defaults to the identity).