I don't see any reason why --exclude= --include= should be only allowing packages, it should also allow modules, eg: `rdmd --exclude=bar main.d` => will exclude package bar or module bar whichever is defined Eg, there's no way currently to exclude a single module. This will allow this as well as other use cases.
I think this will be fixed with: https://github.com/dlang/tools/pull/271
https://github.com/dlang/tools/pull/271
https://github.com/dlang/tools/pull/271 was reverted
Move to https://github.com/dlang/tools/issues/421