protobuf-go/protogen
Damien Neil d277b5236a protogen: produce an error if len(os.Args) > 1
Users sometimes run protoc-gen-go directly (rather than via protoc
--go_out) and are then confused when it sits and does nothing,
waiting for input from stdin. Print an error if any command-line
arguments are passed to it.

Change-Id: I10a059a82ec71b61c4eb6aeecc1e47e2446feabb
Reviewed-on: https://go-review.googlesource.com/c/139877
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2018-10-16 16:53:21 +00:00
..
testdata/go_package protogen, cmd/protoc-gen-go: initial commit 2018-08-22 17:08:04 +00:00
names_test.go protogen: camel-case "Foo.bar" as "FooBar" instead of "Foo_Bar". 2018-10-16 16:18:01 +00:00
names.go protogen: camel-case "Foo.bar" as "FooBar" instead of "Foo_Bar". 2018-10-16 16:18:01 +00:00
protogen_test.go test.bash: do not run golden tests by default 2018-10-16 16:49:18 +00:00
protogen.go protogen: produce an error if len(os.Args) > 1 2018-10-16 16:53:21 +00:00