Usage: ocamldep-4 <options> <files>
Options are:
-absname Show absolute filenames in error messages
-all Generate dependencies on all files
-allow-approx Fallback to a lexer-based approximation on unparsable files
-as-map Omit delayed dependencies for module aliases (-no-alias-deps -w -49)
-debug-map Dump the delayed dependency map for each map file
-I <dir> Add <dir> to the list of include directories
-nocwd Do not add current working directory to the list of include directories
-impl <f> Process <f> as a .ml file
-intf <f> Process <f> as a .mli file
-map <f> Read <f> and propagate delayed dependencies to following files
-ml-synonym <e> Consider <e> as a synonym of the .ml extension
-mli-synonym <e> Consider <e> as a synonym of the .mli extension
-modules Print module dependencies in raw form (not suitable for make)
-native Generate dependencies for native-code only (no .cmo files)
-bytecode Generate dependencies for bytecode-code only (no .cmx files)
-one-line Output one line per file, regardless of the length
-open <module> Opens the module <module> before typing
-plugin <plugin> (no longer supported)
-pp <cmd> Pipe sources through preprocessor <cmd>
-ppx <cmd> Pipe abstract syntax trees through preprocessor <cmd>
-shared Generate dependencies for native plugin files (.cmxs targets)
-slash (Windows) Use forward slash / instead of backslash \ in file paths
-sort Sort files according to their dependencies
-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>
-help Display this list of options
--help Display this list of options
Options (27)
| Option | Description | Source |
|---|---|---|
-absname | Show absolute filenames in error messages. | help + man |
-all | Generate dependencies on all required files, rather than assuming implicit dependencies. | help + man |
-allow-approx | Allow falling back on a lexer-based approximation when parsing fails. | help + man |
-as-map | For the following files, do not include delayed dependencies for module aliases. | help + man |
-debug-map | Dump the delayed dependency map for each map file. | help + man |
-I dir | Add <dir> to the list of include directories | help |
-nocwd | Do not add current working directory to the list of include directories. | help + man |
-impl f | Process <f> as a .ml file | help |
-intf f | Process <f> as a .mli file | help |
-map f | Read <f> and propagate delayed dependencies to following files | help |
-ml-synonym e | Consider <e> as a synonym of the .ml extension | help |
-mli-synonym e | Consider <e> as a synonym of the .mli extension | help |
-modules | Output raw dependencies of the form filename: Module1 Module2 ... | help + man |
-native | Generate dependencies for a pure native-code program (no bytecode version). | help + man |
-bytecode | Generate dependencies for bytecode-code only (no .cmx files) | help |
-one-line | Output one line per file, regardless of the length. | help + man |
-open module | Opens the module <module> before typing | help |
-plugin plugin | (no longer supported) | help |
-pp cmd | Pipe sources through preprocessor <cmd> | help |
-ppx cmd | Pipe abstract syntax trees through preprocessor <cmd> | help |
-shared | Generate dependencies for native plugin files (.cmxs) in addition to native compiled files (.cmx). | help + man |
-slash | (Windows) Use forward slash / instead of backslash \ in file paths | help + man |
-sort | Sort files according to their dependencies. | help + man |
-version | Print version string and exit. | help + man |
-vnum | Print short version number and exit. | help + man |
-help | Display this list of options | help |
--help | Display this list of options | help |