Usage: /usr/lib/ocaml-4/bin/ocamldoc [options] Options are: -absname Show absolute filenames in error messages -alert Enable or disable alerts according to : + enable alert - disable alert ++ treat as fatal error -- treat as non-fatal @ enable and treat it as fatal error can be 'all' to refer to all alert names -I Add to the list of include directories -impl Compile as a .ml file -intf Compile as a .mli file -intf-suffix Suffix for interface files (default: .mli) -intf_suffix (deprecated) same as -intf-suffix -labels Use commuting label mode -modern (deprecated) same as -labels -alias-deps Do record dependencies for module aliases -no-alias-deps Do not record dependencies for module aliases -app-funct Activate applicative functors -no-app-funct Deactivate applicative functors -noassert Do not compile assertion checks -nolabels Ignore non-optional labels in types -nostdlib Do not add default directory to the list of include directories -open Opens the module before typing -pp Pipe sources through preprocessor -ppx Pipe abstract syntax trees through preprocessor -principal Check principality of type inference -no-principal Do not check principality of type inference (default) -rectypes Allow arbitrary recursive types -no-rectypes Do not allow arbitrary recursive types (default) -safe-string (was set when configuring the compiler) -short-paths Shorten paths in types -strict-sequence Left-hand part of a sequence must have type unit -no-strict-sequence Left-hand part of a sequence need not have type unit (default) -strict-formats Reject invalid formats accepted by legacy implementations (Warning: Invalid formats may behave differently from previous OCaml versions, and will become always-rejected in future OCaml versions. You should always use this flag to detect invalid formats so you can fix them.) -no-strict-formats Accept invalid formats accepted by legacy implementations (default) (Warning: Invalid formats may behave differently from previous OCaml versions, and will become always-rejected in future OCaml versions. You should never use this flag and instead fix invalid formats.) -thread (deprecated) same as -I +threads -unboxed-types unannotated unboxable types will be unboxed -no-unboxed-types unannotated unboxable types will not be unboxed (default) -unsafe-string (option not available) -v Print compiler version and location of standard library and exit -verbose Print calls to external commands -version Print version and exit --version Print version and exit -vmthread (no longer supported) -vnum Print version number and exit -w Enable or disable warnings according to : + enable warnings in - disable warnings in @ enable warnings in and treat them as errors can be: a single warning number .. a range of consecutive warning numbers a predefined set default setting is "+a-4-7-9-27-29-30-32..42-44-45-48-50-60-66..70" - Treat as a file name (even if it starts with `-') -initially-opened-module Name of the module that is initially opened -lib Name of the library namespace for a prefixed library.Note: very experimental. -text Consider as a .txt file -warn-error Treat ocamldoc warnings as errors -show-missed-crossref Show missed cross-reference opportunities -hide-warnings do not print ocamldoc warnings -o Set the output file name, used by texi, latex and dot generators (default is ocamldoc.out) or the prefix of index files for the HTML generator (default is index) -d Generate files in directory , rather than in current directory (for man and HTML generators) -sort Sort the list of top modules before generating the documentation -no-stop Do not stop at (**/**) comments -no-custom-tags Do not allow custom @-tags -stars Remove beginning blanks of comment lines, until the first '*' -inv-merge-ml-mli Inverse implementations and interfaces when merging -no-module-constraint-filter Do not filter module elements using module type constraints -keep-code Always keep code when available -dump Dump collected information into -load Load information from ; may be used several times -t Use <title> as title for the generated documentation -intro <file> Use content of <file> as ocamldoc text to use as introduction (HTML, LaTeX and TeXinfo only) -hide <M1,M2.M3,...> Hide the given complete module names in generated doc -m <options> specify merge options between .mli and .ml <options> can be one or more of the following characters: d merge description a merge @author v merge @version l merge @see s merge @since b merge @before o merge @deprecated p merge @param e merge @raise r merge @return c merge custom @-tags A merge all *** choosing a generator *** -html Generate HTML documentation -latex Generate LaTeX documentation -texi Generate TeXinfo documentation -man Generate man pages -dot Generate dot code of top modules dependencies -customdir Display custom generators standard directory and exit -i <dir> Add the given directory to the search path for custom generators -g <file.cm[o|a|xs]> Load file defining a new documentation generator *** HTML options *** -all-params Display the complete list of parameters for functions and methods (HTML only) -css-style <file> Use content of <file> as CSS style definition (HTML only) -index-only Generate index files only (HTML only) -colorize-code Colorize code even in documentation pages (HTML only) -short-functors Use short form to display functor types (HTML only) -charset <s> Add information about character encoding being s (default is iso-8859-1) -nonavbar Do not include the navigation bar (HTML only) *** LaTeX options *** -noheader Suppress header in generated documentation (LaTeX and TeXinfo only) -notrailer Suppress trailer in generated documentation (LaTeX and TeXinfo only) -sepfiles Generate one file per toplevel module (LaTeX only) -latextitle n,style Associate {n } to the given sectioning style (e.g. 'section') in the latex output (LaTeX only) Default sectioning is: 0 -> section 1 -> section 2 -> subsection 3 -> subsubsection 4 -> paragraph 5 -> subparagraph -latex-value-prefix <string> Use <string> as prefix for the LaTeX labels of values. (default is "val:") -latex-type-prefix <string> Use <string> as prefix for the LaTeX labels of types. (default is "type:") -latex-exception-prefix <string> Use <string> as prefix for the LaTeX labels of exceptions. (default is "exception:") -latex-attribute-prefix <string> Use <string> as prefix for the LaTeX labels of attributes. (default is "val:") -latex-method-prefix <string> Use <string> as prefix for the LaTeX labels of methods. (default is "method:") -latex-module-prefix <string> Use <string> as prefix for the LaTeX labels of modules. (default is "module:") -latex-module-type-prefix <string> Use <string> as prefix for the LaTeX labels of module types. (default is "moduletype:") -latex-class-prefix <string> Use <string> as prefix for the LaTeX labels of classes. (default is "class:") -latex-class-type-prefix <string> Use <string> as prefix for the LaTeX labels of class types. (default is "classtype:") -notoc Do not generate table of contents (LaTeX only) *** texinfo options *** -noindex Do not build index for Info files (TeXinfo only) -esc8 Escape accentuated characters in Info files (TeXinfo only) -texinfotitle n,style Associate {n } to the given sectioning style (e.g. 'section') in the texInfo output (TeXinfo only) Default sectioning is: 0 -> @chapter , @majorheading 1 -> @chapter , @majorheading 2 -> @section , @heading 3 -> @subsection , @subheading 4 -> @subsubsection , @subsubheading -info-section Specify section of Info directory (TeXinfo only) -info-entry Specify Info directory entry (TeXinfo only) *** dot options *** -dot-colors <c1,c2,...,cn> Use colors c1,c1,...,cn in the dot output (default list is darkturquoise,darkgoldenrod2,cyan,green, magenta,yellow,burlywood1,aquamarine,floralwhite,lightpink, lightblue,mediumturquoise,salmon,slategray3) -dot-include-all Include all modules in the dot output, not only the modules given on the command line -dot-types Generate dependency graph for types instead of modules -dot-reduce Perform a transitive reduction on the selected dependency graph before the dot output *** man pages options *** -man-mini Generate man pages only for modules, module types, classes and class types (man only) -man-suffix <suffix> Use <suffix> for man page files (default is 3o) (man only) -man-section <section> Use <section> in man page files (default is 3) (man only) -help Display this list of options --help Display this list of options