-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Conversation
31e8381
to
ab36aa5
Compare
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(); }, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
LGTM, could add a changelog entry as well. :) |
Is there a bugzilla issue? |
Thanks Andrej :) |
No description provided.