Added link discovery to the discover sub-command