ipbl/utils/main.go

30 lines
368 B
Go
Raw Permalink Normal View History

2021-11-07 20:44:48 +01:00
package utils
import (
"flag"
"log"
2022-02-07 23:08:22 +01:00
"os"
2022-03-11 23:34:09 +01:00
"time"
2021-11-07 20:44:48 +01:00
)
// Usage displays possible arguments
func Usage() {
flag.PrintDefaults()
2022-02-07 23:08:22 +01:00
os.Exit(0)
2021-11-07 20:44:48 +01:00
}
// Advice displays possible arguments with warning advices
func Advice(advice string) {
flag.PrintDefaults()
if advice != "" {
log.Fatalln(advice)
}
2022-02-07 23:08:22 +01:00
os.Exit(0)
2021-11-07 20:44:48 +01:00
}
2022-03-11 23:34:09 +01:00
func Server() {
for {
time.Sleep(time.Second)
}
}