diff --git a/cmd/gogitlabber/input.go b/cmd/gogitlabber/input.go index 6553dba..469b3ce 100644 --- a/cmd/gogitlabber/input.go +++ b/cmd/gogitlabber/input.go @@ -12,7 +12,7 @@ func manageArguments() { var archivedFlag = flag.String("archived", "excluded", "to include archived repositories (any|excluded|exclusive)\nenv = GOGITLABBER_ARCHIVED\n") var destinationFlag = flag.String("destination", "", "specify where to check the repositories out\n example: -destination=$HOME/repos\nenv = GOGITLABBER_DESTINATION\n") var tokenFlag = flag.String("gitlab-api-token", "", "specify gitlab api token\n example: -gitlab-api=glpat-xxxx\nenv = GITLAB_API_TOKEN\n") - var hostFlag = flag.String("gitlab-url", "", "specify gitlab host\n example: -gitlab-url=gitlab.example.com\nenv = GITLAB_HOSTNAME\n") + var hostFlag = flag.String("gitlab-url", "", "specify gitlab host\n example: -gitlab-url=gitlab.example.com\nenv = GITLAB_URL\n") flag.Parse() @@ -23,7 +23,7 @@ func manageArguments() { gitlabHost = *hostFlag // use environment variable if set, otherwise use flag value - if envHost := os.Getenv("GITLAB_HOSTNAME"); envHost != "" { + if envHost := os.Getenv("GITLAB_URL"); envHost != "" { gitlabHost = envHost }