diff --git a/golang/cosmos/x/swingset/client/cli/tx.go b/golang/cosmos/x/swingset/client/cli/tx.go index b6d2f7ee34b..4604fba4437 100644 --- a/golang/cosmos/x/swingset/client/cli/tx.go +++ b/golang/cosmos/x/swingset/client/cli/tx.go @@ -47,12 +47,14 @@ func GetTxCmd(storeKey string) *cobra.Command { // containing mailbox messages. func GetCmdDeliver() *cobra.Command { cmd := &cobra.Command{ - Use: "deliver { | @- | @}", + Use: "deliver { | @- | @}", Short: "send mailbox messages", Long: `send mailbox messages. +The argument indicates how to read input JSON ("@-" for standard input, +"@..." for a file path, and otherwise directly as in "deliver '[...]'"). Input must represent an array in which the first element is an array of -[messageNum: integer, messageBody: string] pairs and the second element is -an "Ack" integer.`, +[messageNum: integer, messageBody: string] pairs and the second element +is an "Ack" integer.`, Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { @@ -96,9 +98,12 @@ an "Ack" integer.`, // InstallBundle message in a transaction. func GetCmdInstallBundle() *cobra.Command { cmd := &cobra.Command{ - Use: "install-bundle { | @- | @}", + Use: "install-bundle { | @- | @}", Short: "install a bundle", Long: `install a bundle. +The argument indicates how to read input JSON ("@-" for standard input, +"@..." for a file path, and otherwise directly as in +"install-bundle '{...}'"). Input should be endoZipBase64 JSON, but this is not verified. https://github.com/endojs/endo/tree/master/packages/bundle-source`, Args: cobra.ExactArgs(1),