package b0
Software construction and deployment kit
Install
dune-project
Dependency
Authors
Maintainers
Sources
b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0
doc/b0.std/B0_std_cli/Exit/index.html
Module B0_std_cli.Exit
Source
Program exits.
FIXME review that.
Support for B0_std.Os.Exit
exits which are more evolved than those provided by cmdliner.
Common exit codes
infos
has the infos of Cmdliner.Term.default_exits
, no_such_name
, some_error
and those above.
Evaluating and exiting
Source
val of_eval_result :
?term_error:B0_std.Os.Exit.t ->
(B0_std.Os.Exit.t Cmdliner.Cmd.eval_ok, Cmdliner.Cmd.eval_error) result ->
B0_std.Os.Exit.t
of_eval_result ~term_error r
is:
e
ifr
isOk (`Ok e)
ok
ifr
isOk _
Os.Exit.Code Cmdliner.Exit.cli_error
ifr
isError `Parse
.Os.Exit.Code Cmdliner.Exit.internal_error
ifr
isError `Exn
.Os.Exit.code term_error
ifr
isError `Term
.term_error
(defaults toOs.Exit.Code Cmdliner.Exit.cli_error
).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page