INNER CODE UNIT · Go
main
kubernetes-sigs/gateway-api · tools/geps/main.go:69
func main() {
flag.StringVar(&GEPSDir, "g", "", "Defines the absolute path of the directory containing the GEPs")
flag.StringVar(&SkipGEPNumber, "s", "696", "Defines GEPs number to be skipped, should be comma-separated")
flag.StringVar(&OutDir, "o", "", "Defines the absolute path of the output directory (e.g., site/content/en/geps/list)")
flag.Parse()
if GEPSDir == "" {
log.Fatal("-g is mandatory arguments")
}
if strings.Contains(SkipGEPNumber, " ") {
log.Fatal("-s flag should not contain spaces")
}
if OutDir == "" {
OutDir = filepath.Join(GEPSDir, "list")
}