laconicd/cmd/ethermintd/flags.go

27 lines
391 B
Go
Raw Normal View History

2021-04-18 16:39:15 +00:00
package main
import (
"fmt"
"github.com/spf13/cobra"
"github.com/tharsis/ethermint/version"
2021-04-18 16:39:15 +00:00
)
const (
flagLong = "long"
2021-04-18 16:39:15 +00:00
)
func init() {
infoCmd.Flags().Bool(flagLong, false, "Print full information")
}
var infoCmd = &cobra.Command{
Use: "info",
Short: "Print version info",
RunE: func(_ *cobra.Command, _ []string) error {
fmt.Println(version.Version())
return nil
},
}