OSDN Git Service

fix usage of some command
authorlbqds <lbqds@outlook.com>
Fri, 13 Apr 2018 06:58:40 +0000 (14:58 +0800)
committerlbqds <lbqds@outlook.com>
Fri, 13 Apr 2018 07:19:11 +0000 (15:19 +0800)
cmd/bytomcli/commands/account.go
cmd/bytomcli/commands/block.go

index ea8746c..220a6c2 100644 (file)
@@ -184,7 +184,7 @@ var listAddressesCmd = &cobra.Command{
 }
 
 var validateAddressCmd = &cobra.Command{
-       Use:   "validate-address",
+       Use:   "validate-address <address>",
        Short: "validate the account addresses",
        Args:  cobra.ExactArgs(1),
        Run: func(cmd *cobra.Command, args []string) {
index 00ceb72..bde3dbf 100644 (file)
@@ -94,7 +94,7 @@ var getBlockCmd = &cobra.Command{
 }
 
 var getBlockHeaderByHashCmd = &cobra.Command{
-       Use:   "get-block-header-by-hash",
+       Use:   "get-block-header-by-hash <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 <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 <height>",
        Short: "Get the transactions count of a block matching the given height",
        Args:  cobra.ExactArgs(1),
        Run: func(cmd *cobra.Command, args []string) {