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

Unknown flag: --custom_opt #465

Closed
hugokitano opened this issue Mar 9, 2023 · 2 comments · Fixed by #474
Closed

Unknown flag: --custom_opt #465

hugokitano opened this issue Mar 9, 2023 · 2 comments · Fixed by #474

Comments

@hugokitano
Copy link

Simply following the main README here:

protoc -I . --python_betterproto_out=lib --custom_opt=pydantic_dataclasses analytics_event.proto
Unknown flag: --custom_opt

What's going on here? Thanks

@hugokitano hugokitano changed the title Unknown glag: --custom_opt Unknown flag: --custom_opt Mar 9, 2023
MarekPikula added a commit to MarekPikula/python-betterproto that referenced this issue Apr 13, 2023
@MarekPikula
Copy link
Contributor

It should be in fact --python_betterproto_opt=pydantic_dataclasses. Someone copied and pasted from tests with wrong prefix. Took me a while to figure out how the plugin system works for protoc. Also, mind that this feature is not yet released, so you need to install from master branch to benefit from this feature.

@MarekPikula
Copy link
Contributor

Ah, sorry, I didn't check and it seems that there are some pre-releases for 2.0: https://pypi.org/project/betterproto/#history

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 a pull request may close this issue.

2 participants