diff --git a/README.md b/README.md index e2d4b33..5e6c2f7 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ grpcurl -protoset my-protos.bin list grpcurl -import-path ../protos -proto my-stuff.proto list # Export proto files -grpcurl -plaintext -proto-out "out_protos" "192.168.100.1:9200" describe Api.Service +grpcurl -plaintext -proto-out-dir "out_protos" "192.168.100.1:9200" describe Api.Service ``` diff --git a/cmd/grpcurl/grpcurl.go b/cmd/grpcurl/grpcurl.go index 73e31f4..80f87bf 100644 --- a/cmd/grpcurl/grpcurl.go +++ b/cmd/grpcurl/grpcurl.go @@ -151,7 +151,7 @@ var ( file if this option is given. When invoking an RPC and this option is given, the method being invoked and its transitive dependencies will be included in the output file.`)) - protoOut = flags.String("proto-out", "", prettify(` + protoOut = flags.String("proto-out-dir", "", prettify(` The name of a directory where the generated .proto files will be written. With the list and describe verbs, the listed or described elements and their transitive dependencies will be written as .proto files in the