laconicd/cmd/ethermintd/flags.go
Federico Kunze Küllmer 26c5eabb18
all: linter (#532)
* add additional linters

* fixes

* rm action
2021-09-05 11:03:06 +00:00

27 lines
391 B
Go

package main
import (
"fmt"
"github.com/spf13/cobra"
"github.com/tharsis/ethermint/version"
)
const (
flagLong = "long"
)
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
},
}