ipbl/utils/main.go

22 lines
301 B
Go
Raw Normal View History

2021-11-07 20:44:48 +01:00
package utils
import (
"flag"
"log"
)
// Usage displays possible arguments
func Usage() {
flag.PrintDefaults()
log.Fatal()
}
// Advice displays possible arguments with warning advices
func Advice(advice string) {
flag.PrintDefaults()
if advice != "" {
log.Fatalln(advice)
}
log.Fatal()
}