fullstorydev / grpcurl

Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers
MIT License
10.36k stars 497 forks source link

-protoset-out not working when invoking RPC #363

Open charlierudolph opened 1 year ago

charlierudolph commented 1 year ago

The documentation for -protoset-out includes:

When invoking an RPC and this option is given, the method being invoked and its transitive dependencies will be included in the output file.

However, when I attempt to use the option when invoking an RPC no file in written. Looking at the current code, it appears the function to write the protoset is not called within the invoke if block.

For my use case, ideally the -protoset-out would work as documented. If it was decided to not work with invoking, I think the documentation needs to be updated and a validation error added.