log.Fatalf("Please set a environment variable named %s created on github.", environmentTokenKey)
}
varuserInputuserInputs
flag.StringVar(&userInput.user, "user", "idnowgmbh", "The User / Owner of the repository")
flag.StringVar(&userInput.source, "source", "master", "The source branch/tag to create the new tag")
flag.StringVar(&userInput.fallbackBranch, "fallback-branch", "master", "The fallback branch to create the TAG on if the source branch does not exist in the repository.")
flag.IntVar(&userInput.timeout, "timeout", 5, "The Timeout for Github API Calls")
flag.StringVar(&userInput.supportBranchName, "support-branch-name", "", "The name of the support branch to create if source branch is a tag")
flag.StringVar(&userInput.tag, "tag", "", "The tag to create.")
flag.StringVar(&userInput.releaseName, "release-name", "", "The name of the Release")
flag.StringVar(&userInput.previousTag, "previous-tag", "", "The previous tag to use in the message")
flag.BoolVar(&userInput.preRelease, "pre-release", true, "If this is a pre-release, use -pre-release=false to change")
log.Infof("%2d : Starting Release %s for %s with Tag Version %s on branch %s with fallback branch %s and possible support branch %s", index+1, userInput.releaseName, project, userInput.tag, userInput.source, userInput.fallbackBranch, userInput.supportBranchName)
_, _=fmt.Fprintf(flag.CommandLine.Output(), "\n%s is an opinionated implementation of some Github APIs that can be used to create release tags for multiple projects\n", executableName)
_, _=fmt.Fprintf(flag.CommandLine.Output(), "\nWhen -source is a TAG -support-branch-name is mandatory. \n")
_, _=fmt.Fprintf(flag.CommandLine.Output(), "An environment variable with the name %s is mandatory for all actions!\nSee https://developer.github.com/v3/#oauth2-token-sent-in-a-header to get one.\n\n", environmentTokenKey)
_, _=fmt.Fprintf(flag.CommandLine.Output(), "Below are the possible parameters:\n")