Files
rbheap/cmd/helpers.go
Jim Myhrberg 85cf2ac225 Switch from kingpin to cobra
This enables easier use of sub-commands for flexibility
2018-07-08 02:57:33 +01:00

20 lines
229 B
Go

package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
func usage_er(cmd *cobra.Command, msg interface{}) {
cmd.Usage()
fmt.Println("")
er(msg)
}
func er(msg interface{}) {
fmt.Println("ERROR:", msg)
os.Exit(1)
}