You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've detected whenever we use the cli and it returns an error, Cobra always returns the usage message. Even when we pass the right parameters.
How to reproduce:
$ go run ../main.go -k pepe client membership --key 0 --version 1 -l info
QedClient: 2018/10/11 11:00:05.575712 /home/spark/go/src/github.com/bbva/qed/cmd/client_membership.go:53: Querying key [ 0 ] with version [ 1 ]
Error: Unexpected server error
Usage:
qed client membership [flags]
Flags:
-h, --help help for membership
--historyDigest string Digest of the history tree
--hyperDigest string Digest of the hyper tree
--key string Key to query
--verify Do verify received proof
--version uint Version to query
Global Flags:
-k, --apikey string Server api key
-e, --endpoint string Endpoint for REST requests on (host:port) (default "http://localhost:8080")
-l, --log string Choose between log levels: silent, error, info and debug (default "error")
exit status 255
We've seen an possible solution in this Cobra issue
The text was updated successfully, but these errors were encountered:
I've detected whenever we use the cli and it returns an error, Cobra always returns the usage message. Even when we pass the right parameters.
How to reproduce:
We've seen an possible solution in this Cobra issue
The text was updated successfully, but these errors were encountered: