Add global flags to all queries and posts
This commit is contained in:
parent
acf24f1c1b
commit
da7a36a866
|
@ -18,6 +18,10 @@ const (
|
|||
|
||||
flagBind = "bind"
|
||||
flagCORS = "cors"
|
||||
flagTrustNode = "trust-node"
|
||||
|
||||
// this is for signing
|
||||
flagName = "name"
|
||||
)
|
||||
|
||||
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
|
||||
//
|
||||
// Call AddGetCommand and AddPostCommand to add custom txs and queries
|
||||
|
|
Loading…
Reference in New Issue