INNER CODE UNIT · Go

Usage

kubernetes/enhancements · cmd/kepify/main.go:30

func Usage() {
	fmt.Fprintf(os.Stderr, `
Usage: %s [-dir <kep-directory>] [-output <path-to-json-file>]
Command line flags override config values.
`, os.Args[0])
	flag.PrintDefaults()
}

func main() {
	dirPath := flag.String("dir", "keps", "root directory for the KEPs")
	filePath := flag.String("output", "keps.json", "output json file")

	flag.Usage = Usage
	flag.Parse()

	if *dirPath == "" {
		fmt.Fprintf(os.Stderr, "please specify the root directory for KEPs using '--dir'\n")
		os.Exit(1)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…