laconicd-deprecated/cmd/laconicd/flags.go
2023-01-04 16:34:38 +05:30

25 lines
385 B
Go

package main
import (
"fmt"
"github.com/spf13/cobra"
"github.com/cerc-io/laconicd/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
},
}