Split the contents of "--exclude"

Add more tests that tests this behavior.
Add missing docstring