package catala

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val languages : (string * Global.backend_lang) list
val language_code : Global.backend_lang -> string

Returns the lowercase two-letter language code

val file_lang : Global.file -> Global.backend_lang

Associates a file extension with its corresponding Global.backend_lang string representation.

CLI flags and options

val when_opt : Global.when_enum Cmdliner.Arg.conv
module Flags : sig ... end

Command-line application

val version : string
val info : Cmdliner.Cmd.info
val s_plugins : string

Manpage section name for the installed plugins

exception Exit_with of int

Exit with a specific exit code (but less brutally than Sys.exit which would bypass all finalisers)

Other helpers

val exec_dir : Global.file

Returns the directory of the currently running executable

OCaml

Innovation. Community. Security.