This commit is contained in:
parent
3c2ab6ead2
commit
8008a34281
@ -9,7 +9,8 @@ jobs:
|
||||
go-arch: [ 'amd64', 'arm64' ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
|
@ -11,12 +11,15 @@ func main() {
|
||||
configFile := flag.String("config", "", "configuration file")
|
||||
debugFlag := flag.Bool("debug", false, "enable debug messages")
|
||||
traceFlag := flag.Bool("trace", false, "enable trace messages")
|
||||
quietFlag := flag.Bool("quiet", false, "be quiet")
|
||||
flag.Parse()
|
||||
|
||||
if *traceFlag {
|
||||
log.SetLevel(log.TraceLevel)
|
||||
} else if *debugFlag {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
} else if *quietFlag {
|
||||
log.SetLevel(log.WarnLevel)
|
||||
}
|
||||
|
||||
c, err := updateip.Load(*configFile)
|
||||
|
Loading…
Reference in New Issue
Block a user