Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rdmd: Add --include switch #183

Merged
merged 1 commit into from
Aug 31, 2016

Conversation

CyberShadow
Copy link
Member

No description provided.

@DmitryOlshansky
Copy link
Member

LGTM

@@ -130,6 +131,7 @@ int main(string[] args)
"eval", &eval,
"loop", &loop,
"exclude", &exclusions,
"include", (string opt, string p) { exclusions = exclusions.filter!(ex => ex != p).array(); },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm how much does this depend on the order of the arguments? I assume if you ran:

--exclude=abc --include=abc

abc would be included at the end. This is more of a question for getopt, since I'm not sure whether it iterates arguments left-to-right or right-to-left.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I've confirmed it actually iterates over the options in order first, not the arguments. So the PR is ok.

@AndrejMitrovic
Copy link
Contributor

LGTM, could add a changelog entry as well. :)

@AndrejMitrovic
Copy link
Contributor

Is there a bugzilla issue?

@AndrejMitrovic
Copy link
Contributor

@AndrejMitrovic AndrejMitrovic merged commit c568ac7 into dlang:master Aug 31, 2016
@CyberShadow
Copy link
Member Author

Thanks Andrej :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants