INNER CODE UNIT · Go

parseFlags

werf/nelm · scripts/denolock/main.go:313

func parseFlags() options {
	var opts options

	flag.BoolVar(&opts.checkUpstream, "check-upstream", false,
		"Report whether the release assets the lock pins still hash to what it records, and exit")
	flag.StringVar(&opts.outputPath, "output", defaultOutputPath, "Lock file to write, verify or check")
	flag.IntVar(&opts.parallelism, "parallelism", defaultParallelism, "How many platforms to download concurrently")
	flag.BoolVar(&opts.verify, "verify", false,
		"Check the committed lock against the platforms nelm builds for and exit, without downloading anything")
	flag.StringVar(&opts.version, "version", "",
		"Deno version to pin, with or without the leading \"v\". Defaults to the version the lock already records")
	flag.Parse()

	return opts
}

func main() {
	ctx := context.Background()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…