diff --git a/scripts/encode-metacomment/main.go b/scripts/encode-metacomment/main.go index e91cf154..5e7e91f6 100644 --- a/scripts/encode-metacomment/main.go +++ b/scripts/encode-metacomment/main.go @@ -13,7 +13,7 @@ var toolName = flag.String("tool-name", "", "tool-name") func main() { flag.Parse() - if fprint == nil || toolName == nil { + if *fprint == "" || *toolName == "" { fmt.Println("Set both -fprint and -tool-name flags") os.Exit(1) }