mirror of
https://github.com/jimeh/rbheap.git
synced 2026-02-19 04:46:40 +00:00
20 lines
229 B
Go
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)
|
|
}
|