add no-dev option to licenses command

For us it is more usefull to get the list of no dev requires. So i add the option to the command.
you are potentially duplicating packages multiple time in the list because of the way you include "child" packages.

And if there is a circular dependencies between packages (which is totally possible), you will create an infinite loop