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

Add --<lang>_opt flag for all built-in generators #6999

Merged
merged 1 commit into from
Dec 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/google/protobuf/compiler/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ int ProtobufMain(int argc, char* argv[]) {

// Proto2 Python
python::Generator py_generator;
cli.RegisterGenerator("--python_out", &py_generator,
cli.RegisterGenerator("--python_out", "--python_opt", &py_generator,
"Generate Python source file.");

// PHP
php::Generator php_generator;
cli.RegisterGenerator("--php_out", &php_generator,
cli.RegisterGenerator("--php_out", "--php_opt", &php_generator,
"Generate PHP source file.");

// Ruby
ruby::Generator rb_generator;
cli.RegisterGenerator("--ruby_out", &rb_generator,
cli.RegisterGenerator("--ruby_out", "--ruby_opt", &rb_generator,
"Generate Ruby source file.");

// CSharp
Expand All @@ -94,7 +94,7 @@ int ProtobufMain(int argc, char* argv[]) {

// JavaScript
js::Generator js_generator;
cli.RegisterGenerator("--js_out", &js_generator,
cli.RegisterGenerator("--js_out", "--js_opt", &js_generator,
"Generate JavaScript source.");

return cli.Run(argc, argv);
Expand Down