func defineOptions()

in main.go [76:89]


func defineOptions() *options {
	o := options{}
	o.clientID = os.Getenv(aadClientIDEnvVar)
	o.clientSecret = os.Getenv(aadClientSecretEnvVar)
	o.tenantID = os.Getenv(tenantIDEnvVar)
	o.subscriptionID = os.Getenv(subscriptionIDEnvVar)
	flag.BoolVar(&o.dryRun, "dry-run", false, "Set to true if we should run the cleanup tool without deleting the resource groups.")
	flag.BoolVar(&o.identity, "identity", false, "Set to true if we should user-assigned identity for AUTH")
	flag.BoolVar(&o.cli, "az-cli", false, "Set to true if we should use az cli for AUTH")
	flag.DurationVar(&o.ttl, "ttl", defaultTTL, "The duration we allow resource groups to live before we consider them to be stale.")
	flag.StringVar(&o.regex, "regex", defaultRegex, "Only delete resource groups matching regex")
	flag.Parse()
	return &o
}