Module Catala_utils.Cli

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

val s_debug : string

Name of the manpage section for debugging commands (use as ~docs arg to Arg.info)

val man_base : Cmdliner.Manpage.block list

Skeleton of the manpage shared by all commands

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