mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-16 05:15:03 +00:00
fix: correct flag check in main function
This commit is contained in:
@@ -47,7 +47,7 @@ type AnubisRule struct {
|
|||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
if *helpFlag || flag.NArg() == 0 {
|
if *helpFlag || flag.NFlag() == 0 {
|
||||||
showHelp()
|
showHelp()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user