tiziano88 / elm-protobuf

protobuf plugin for elm
https://package.elm-lang.org/packages/tiziano88/elm-protobuf/latest/
MIT License
94 stars 28 forks source link

protoc-gen-elm: don't print input by default #24

Open pschultz opened 5 years ago

pschultz commented 5 years ago

I was taking protoc-gen-elm for a test-drive, and so far it's looking really good. Thank you very much for your work.

When generating elm code for an existing project, protoc-gen-elm printed thousands(!) of lines of what appears to be debug output, making the output from other protoc plugins completely invisible.

With this PR protoc-gen-elm no longer prints a text representation of the proto input by default. To print the text representation, set the debug option:

protoc --elm_out=debug:. *.proto

Support for options is new. Even though debug is the only recognized option for now, for future expansion we follow the convention of most other protoc plugins by accepting a comma separated list of key=value pairs (with optional value part).

protoc --elm_out=p1=v1,p2=v2,p3:. *.proto