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

Support extra parameters for plugins. #2284

Merged
merged 2 commits into from
Oct 26, 2016

Conversation

liujisi
Copy link
Contributor

@liujisi liujisi commented Oct 26, 2016

No description provided.

@@ -262,6 +262,10 @@ void AddDefaultProtoPaths(vector<pair<string, string> >* paths) {
return;
}
}

string PluginName(const string& plugin_prefix, const string& directive) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe document that this assumes "--" on the front and "_out"/"_opt" on the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

@thomasvl thomasvl left a comment

Choose a reason for hiding this comment

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

Thanks!

@liujisi liujisi merged commit 734930f into protocolbuffers:master Oct 26, 2016
@liujisi liujisi deleted the plugin_opt branch August 3, 2017 20:44
@liujisi liujisi restored the plugin_opt branch August 3, 2017 20:44
@liujisi liujisi deleted the plugin_opt branch August 3, 2017 20:46
plaflamme added a commit to plaflamme/protoc-bridge that referenced this pull request Jun 10, 2020
This feature was added in protocolbuffers/protobuf#2284 and allows options with `:` in the value.
thesamet pushed a commit to scalapb/protoc-bridge that referenced this pull request Jun 11, 2020
* Use _opt parameter to pass plugin options.

This feature was added in protocolbuffers/protobuf#2284 and allows options with `:` in the value.

* Adds a test for passing parameters to plugins.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants