fullstorydev / grpcurl

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

Allow flags to be passed on the end of the command line? #350

Open glenjamin opened 1 year ago

glenjamin commented 1 year ago

One of the things I find makes ordinary cURL easy to work with is that it allows tacking arguments onto the end of the command line, which in practice tends to mean things that vary per invocation (especially payloads) can live on the end and be edited easily.

I'm aware that grpcurl inherits its behaviour from Go's stdlib flag package, but would you be open to allowing flags to be specified at the end too?

I had a poke around and this stack overflow answer offers an approach that should work: https://stackoverflow.com/a/25113485/173062

I'd be happy to send in a PR if you're open to this