Mix xref graph: error using both sink & source options

I’ve gotten the error
mix xref graph expects only one of --source and --sink
from giving it two relative file paths
mix xref graph --source lib/app/dir/module.ex --sink lib/app/router.ex,
whereas the docs say mix xref graph --source lib/foo.ex --sink lib/bar.ex is valid.
Are the docs out-of-date?

It‘s likely the other way round. The docs are up to date, but you‘re not on elixir 1.11, where this feature was introduced.

1 Like