Make options passable for gather_dependencies

Closes #3323103

Merge request reports

Loading