INNER CODE UNIT · Go

parseFlags

kubernetes/dns · cmd/e2e/main.go:35

func parseFlags() {
	flag.Usage = func() {
		fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0])
		fmt.Fprintf(os.Stderr, `
Runs the e2e framework SetUp and TearDown without running tests. You
can use this executable to setup a test environment without running
the end-to-end tests themselves.

Note: this executable will clobber the contents of /var/lib/kubelet and
start/stop containers on the local docker instance.
`)
		flag.PrintDefaults()
	}

	flag.StringVar(&opts.baseDir, "baseDir", "",
		"kubernetes/dns source code directory (default is current directory)")
	flag.StringVar(&opts.workDir, "workDir", "/tmp/k8s-dns", "temporary directory")
	flag.Parse()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…