D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18040 - rdmd --exclude= --include= should allow passing in modules (not just packages)
Summary: rdmd --exclude= --include= should allow passing in modules (not just packages)
Status: RESOLVED MOVED
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: x86 Mac OS X
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-07 06:07 UTC by Timothee Cour
Modified: 2021-01-09 11:06 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Timothee Cour 2017-12-07 06:07:41 UTC
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.
Comment 1 Jonathan Marler 2018-01-10 03:07:35 UTC
I think this will be fixed with: https://github.com/dlang/tools/pull/271
Comment 2 Jonathan Marler 2018-01-16 17:39:40 UTC
https://github.com/dlang/tools/pull/271
Comment 3 Jonathan Marler 2018-01-20 02:22:53 UTC
https://github.com/dlang/tools/pull/271 was reverted
Comment 4 Mathias LANG 2021-01-09 11:06:56 UTC
Move to https://github.com/dlang/tools/issues/421