@@ -22,3 +22,7 @@ var BCCmd = &cobra.Command{
 		fmt.Println("Print: " + strings.Join(args, " "))
 	},
 }
+
+func init() {
+	BCCmd.AddCommand(heightCmd)
+}
// Copyright (c) 2019 IoTeX
// This is an alpha (internal) release and is not suitable for production. This source code is provided 'as is' and no
// warranties are given as to title or non-infringement, merchantability or fitness for purpose and, to the extent
// permitted by law, all liability for your use of the code is disclaimed. This source code is governed by Apache
// License 2.0 that can be found in the LICENSE file.

package bc

import (
	"fmt"
	"strings"

	"github.com/spf13/cobra"
)

// BCCmd represents the bc(block chain) command
var BCCmd = &cobra.Command{
	Use:   "bc",
	Short: "Deal with block chain of IoTeX blockchain",
	Args:  cobra.MinimumNArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("Print: " + strings.Join(args, " "))
	},
}

don't use `init` function (from `gochecknoinits`)