From e8ed3f45b537841e719b1ccde675f66d1cbe1b71 Mon Sep 17 00:00:00 2001 From: chengwenxi Date: Sun, 18 Nov 2018 10:06:38 +0800 Subject: [PATCH] Add example --- client/bank/cli/broadcast.go | 1 + client/bank/cli/sign.go | 1 + 2 files changed, 2 insertions(+) diff --git a/client/bank/cli/broadcast.go b/client/bank/cli/broadcast.go index 950a502d0..13f02ad43 100644 --- a/client/bank/cli/broadcast.go +++ b/client/bank/cli/broadcast.go @@ -13,6 +13,7 @@ func GetBroadcastCommand(codec *amino.Codec) *cobra.Command { Short: "Broadcast transactions generated offline", Long: `Broadcast transactions created with the --generate-only flag and signed with the sign command. Read a transaction from and broadcast it to a node.`, + Example: "iriscli bank broadcast ", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) (err error) { cliCtx := context.NewCLIContext().WithCodec(codec) diff --git a/client/bank/cli/sign.go b/client/bank/cli/sign.go index c71578dbf..a35d45d09 100644 --- a/client/bank/cli/sign.go +++ b/client/bank/cli/sign.go @@ -32,6 +32,7 @@ Read a transaction from , sign it, and print its JSON encoding. The --offline flag makes sure that the client will not reach out to the local cache. Thus account number or sequence number lookups will not be performed and it is recommended to set such parameters manually.`, + Example: "iriscli bank sign --name --chain-id=", RunE: makeSignCmd(codec, decoder), Args: cobra.ExactArgs(1), }