-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
Conversation
@@ -262,6 +262,10 @@ void AddDefaultProtoPaths(vector<pair<string, string> >* paths) { | |||
return; | |||
} | |||
} | |||
|
|||
string PluginName(const string& plugin_prefix, const string& directive) { |
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.
Maybe document that this assumes "--" on the front and "_out"/"_opt" on the end?
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.
Done.
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.
Thanks!
This feature was added in protocolbuffers/protobuf#2284 and allows options with `:` in the value.
* 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.
No description provided.