Usage: ocaml 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 -init Load instead of default init file -labels Use commuting label mode -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 -noinit Do not load any init file -nolabels Ignore non-optional labels in types -noprompt Suppress all prompts -nopromptcont Suppress prompts for continuation lines of multi-line inputs -nostdlib Do not add default directory to the list of include directories -nopervasives (undocumented) -open Opens the module before typing -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 -stdin Read script from standard input -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.) -unboxed-types unannotated unboxable types will be unboxed -no-unboxed-types unannotated unboxable types will not be unboxed (default) -unsafe Do not compile bounds checking on array and string access -unsafe-string (option not available) -version Print version and exit --version Print version and exit -no-version Do not print version at startup -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" -warn-error Enable or disable error status for warnings according to . See option -w for the syntax of . Default setting is "-a+31" -warn-help Show description of warning numbers - Treat as a file name (even if it starts with `-') -color {auto|always|never} Enable or disable colors in compiler messages The following settings are supported: auto use heuristics to enable colors only if supported always enable colors never disable colors The default setting is 'auto', and the current heuristic checks that the TERM environment variable exists and is not empty or "dumb", and that isatty(stderr) holds. If the option is not specified, these setting can alternatively be set through the OCAML_COLOR environment variable. -error-style {contextual|short} Control the way error messages and warnings are printed The following settings are supported: short only print the error and its location contextual like "short", but also display the source code snippet corresponding to the location of the error The default setting is 'contextual'. If the option is not specified, these setting can alternatively be set through the OCAML_ERROR_STYLE environment variable. -dno-unique-ids (undocumented) -dunique-ids (undocumented) -dno-locations (undocumented) -dlocations (undocumented) -dsource (undocumented) -dparsetree (undocumented) -dtypedtree (undocumented) -dshape (undocumented) -drawlambda (undocumented) -dlambda (undocumented) -dinstr (undocumented) -args Read additional newline-terminated command line arguments from -args0 Read additional null character terminated command line arguments from -e