Remove ports argument.
Add unit test pattern for -l and -d.