Add global flags to all queries and posts
This commit is contained in:
parent
acf24f1c1b
commit
da7a36a866
|
@ -16,8 +16,12 @@ const (
|
||||||
flagTags = "tag"
|
flagTags = "tag"
|
||||||
flagAny = "any"
|
flagAny = "any"
|
||||||
|
|
||||||
flagBind = "bind"
|
flagBind = "bind"
|
||||||
flagCORS = "cors"
|
flagCORS = "cors"
|
||||||
|
flagTrustNode = "trust-node"
|
||||||
|
|
||||||
|
// this is for signing
|
||||||
|
flagName = "name"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -42,6 +46,13 @@ Subcommands should be defined for each particular transaction type.`,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
getCmd.PersistentFlags().Bool(flagTrustNode, false, "Don't verify proofs for responses")
|
||||||
|
|
||||||
|
postCmd.PersistentFlags().String(flagName, "", "Name of private key with which to sign")
|
||||||
|
postCmd.PersistentFlags().String(flagPassword, "", "Password to use the named private key")
|
||||||
|
}
|
||||||
|
|
||||||
// ClientCommands returns a sub-tree of all basic client commands
|
// ClientCommands returns a sub-tree of all basic client commands
|
||||||
//
|
//
|
||||||
// Call AddGetCommand and AddPostCommand to add custom txs and queries
|
// Call AddGetCommand and AddPostCommand to add custom txs and queries
|
||||||
|
|
Loading…
Reference in New Issue