wilzbach / tools-test

1 stars 0 forks source link

rdmd --exclude= --include= should allow passing in modules (not just packages) #177

Closed wilzbach closed 6 years ago

wilzbach commented 6 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#18040 From: Timothee Cour <timothee.cour2@gmail.com> Reported version: D2 CC: johnnymarler@gmail.com

wilzbach commented 6 years ago

Comment author: Timothee Cour <timothee.cour2@gmail.com>

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.

wilzbach commented 6 years ago

Comment author: Jonathan Marler <johnnymarler@gmail.com>

I think this will be fixed with: https://github.com/dlang/tools/pull/271

wilzbach commented 6 years ago

Comment author: Jonathan Marler <johnnymarler@gmail.com>

https://github.com/dlang/tools/pull/271