It is often useful to find out the descendants of a package, i.e. all direct or indirect users of the package. There is another "ocamlfind" subcommand that allows us to query descendants. For example, to get the direct and indirect users of p, type in
ocamlfind query -descendants p
The set of packages that are possible descendants is determined as follows:
All packages located in directories mentioned in the environment variable OCAMLPATH are candidates. Note that only package directories containing META files are taken.
The packages in the default package directory are candidates, too.
If there are two packages with the same name, only the first counts, i.e. the first in OCAMLPATH, then the one in the default directory.