From f086191fd88093fa5cd65eaeee2cc35ee77f7346 Mon Sep 17 00:00:00 2001 From: lbqds Date: Fri, 13 Apr 2018 14:58:40 +0800 Subject: [PATCH] fix usage of some command --- cmd/bytomcli/commands/account.go | 2 +- cmd/bytomcli/commands/block.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/bytomcli/commands/account.go b/cmd/bytomcli/commands/account.go index ea8746cc..220a6c2a 100644 --- a/cmd/bytomcli/commands/account.go +++ b/cmd/bytomcli/commands/account.go @@ -184,7 +184,7 @@ var listAddressesCmd = &cobra.Command{ } var validateAddressCmd = &cobra.Command{ - Use: "validate-address", + Use: "validate-address
", Short: "validate the account addresses", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { diff --git a/cmd/bytomcli/commands/block.go b/cmd/bytomcli/commands/block.go index 00ceb72e..bde3dbfc 100644 --- a/cmd/bytomcli/commands/block.go +++ b/cmd/bytomcli/commands/block.go @@ -94,7 +94,7 @@ var getBlockCmd = &cobra.Command{ } var getBlockHeaderByHashCmd = &cobra.Command{ - Use: "get-block-header-by-hash", + Use: "get-block-header-by-hash ", Short: "Get the header of a block matching the given hash", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -107,7 +107,7 @@ var getBlockHeaderByHashCmd = &cobra.Command{ } var getBlockTransactionsCountByHashCmd = &cobra.Command{ - Use: "get-block-transactions-count-by-hash", + Use: "get-block-transactions-count-by-hash ", Short: "Get the transactions count of a block matching the given hash", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { @@ -120,7 +120,7 @@ var getBlockTransactionsCountByHashCmd = &cobra.Command{ } var getBlockTransactionsCountByHeightCmd = &cobra.Command{ - Use: "get-block-transactions-count-by-height", + Use: "get-block-transactions-count-by-height ", Short: "Get the transactions count of a block matching the given height", Args: cobra.ExactArgs(1), Run: func(cmd *cobra.Command, args []string) { -- 2.11.0