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