Skip to content

Commit ef8a575

Browse files
mergify[bot]lilasxiejulienrbrt
authored
docs(client/debug): correct debug raw-bytes command example (backport #21671) (#21676)
Co-authored-by: lilasxie <thanklilas@163.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
1 parent 63a535e commit ef8a575

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

client/debug/main.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,11 @@ $ %s debug addr cosmos1e0jnq2sun3dzjh8p2xq95kk0expwmd7shwjpfg
298298

299299
func RawBytesCmd() *cobra.Command {
300300
return &cobra.Command{
301-
Use: "raw-bytes [raw-bytes]",
302-
Short: "Convert raw bytes output (eg. [10 21 13 255]) to hex",
303-
Long: fmt.Sprintf(`Convert raw-bytes to hex.
304-
305-
Example:
306-
$ %s debug raw-bytes [72 101 108 108 111 44 32 112 108 97 121 103 114 111 117 110 100]
307-
`, version.AppName),
308-
Args: cobra.ExactArgs(1),
301+
Use: "raw-bytes <raw-bytes>",
302+
Short: "Convert raw bytes output (eg. [10 21 13 255]) to hex",
303+
Long: "Convert raw-bytes to hex.",
304+
Example: fmt.Sprintf("%s debug raw-bytes '[72 101 108 108 111 44 32 112 108 97 121 103 114 111 117 110 100]'", version.AppName),
305+
Args: cobra.ExactArgs(1),
309306
RunE: func(_ *cobra.Command, args []string) error {
310307
stringBytes := args[0]
311308
stringBytes = strings.Trim(stringBytes, "[")

0 commit comments

Comments
 (0)