OS Manuals

/usr/bin/ocamlcmt

The core OCaml system: compilers, runtime system, base libraries

From ocaml 5.5.2-r0 (os), captured 2026-11-05 by running ocamlcmt --help (exit 0). permalink

Read FILE.cmt and print related information
Usage: ocamlcmt [options] FILE.cmt
Options are:
  -o <file>       Dump to file <file> (or stdout if -)
  -annot          Generate the corresponding .annot file
  -save-cmt-info  Encapsulate additional cmt information in annotations
  -src            Convert .cmt or .cmti back to source code (without comments)
  -info           : print information on the file
  -version        Print version and exit
  -vnum           Print version number and exit
  -args <file>    Read additional newline separated command line arguments
      from <file>
  -args0 <file>   Read additional NUL separated command line arguments from
      <file>
  -I <dir>        Add <dir> to the list of include directories
  -help           Display this list of options
  --help          Display this list of options
Options (12)
OptionDescriptionSource
-o fileDump to file <file> (or stdout if -)help
-annotGenerate the corresponding .annot filehelp
-save-cmt-infoEncapsulate additional cmt information in annotationshelp
-srcConvert .cmt or .cmti back to source code (without comments)help
-info: print information on the filehelp
-versionPrint version and exithelp
-vnumPrint version number and exithelp
-args fileRead additional newline separated command line arguments from <file>help
-args0 fileRead additional NUL separated command line arguments from <file>help
-I dirAdd <dir> to the list of include directorieshelp
-helpDisplay this list of optionshelp
--helpDisplay this list of optionshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.