Previous: guile-tools twerp2texi, Up: Miscellaneous Tools


13.45 guile-tools use2dot

Usage: use2dot [OPTIONS] [FILE ...]

Display to stdout a DOT specification that describes module dependencies
in FILEs.

A top-level `use-modules' form or a `#:use-module' `define-module'-component
results in a "solid" style edge.

An `#:autoload' `define-module'-component results in a "dotted" style edge
with label "N" indicating that N names are responsible for triggering the
autoload.  [The "N" label is not implemented.]

A top-level `load' or `primitive-load' form results in a a "bold" style
edge to a node named with either the file name if the `load' argument is a
string, or "[computed in FILE]" otherwise.

Options:
 -m, --default-module MOD -- Set MOD as the default module (for top-level
                             `use-modules' forms that do not follow some
                             `define-module' form in a file).  MOD should be
                             be a list or `#f', in which case such top-level
                             `use-modules' forms are effectively ignored.
                             Default value: `(guile-user)'.


Usage from a Scheme program:
  (use2dot options files)

Send DOT output to the current output port.  Return value is unspecified.
FILES is a list of files.  OPTIONS is either #f or an alist the keys of
which correspond to the shell command options (at this time, the solitary
`default-module').