Use show-dependencies as command name.

It also cleans the code and adds a couple of lines of documentation.

/cc @d2fn