pki/utils/main.go
Paul Lecuq a7d4f06285
All checks were successful
continuous-integration/drone/push Build is passing
ready for public beta
2020-11-25 20:36:07 +01:00

22 lines
301 B
Go

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()
}