Skip to content

Commit

Permalink
use flag.VisitAll function (#270)
Browse files Browse the repository at this point in the history
Signed-off-by: devincd <[email protected]>
  • Loading branch information
devincd authored Jul 27, 2021
1 parent edab0ec commit 68dceda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client_cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ func main() {
"descriptor list to query in <key>=<value>,<key>=<value>,... form")
flag.Parse()

fmt.Printf("dial string: %s\n", *dialString)
fmt.Printf("domain: %s\n", *domain)
fmt.Printf("descriptors: %s\n", &descriptorsValue)
flag.VisitAll(func(f *flag.Flag) {
fmt.Printf("Flag: --%s=%q\n", f.Name, f.Value)
})

conn, err := grpc.Dial(*dialString, grpc.WithInsecure())
if err != nil {
Expand Down

0 comments on commit 68dceda

Please sign in to comment.