diff --git a/cmd/gogitlabber/input.go b/cmd/gogitlabber/input.go index 21981f9..ccd1d97 100644 --- a/cmd/gogitlabber/input.go +++ b/cmd/gogitlabber/input.go @@ -91,17 +91,17 @@ func manageArguments() { var debugFlag = flag.Bool( "debug", debug, - "Toggle debug mode\n example: -debug=true\nenv = GOGITLABBER_DEBUG\n") + "Toggle debug mode\n example: -debug=true\nenv = GOGITLABBER_DEBUG\n") flag.Parse() // Override with flag values (higher precedence) concurrency = *concurrencyFlag + debug = *debugFlag gitlabHost = *hostFlag gitlabToken = *tokenFlag includeArchived = *archivedFlag repoDestinationPre = *destinationFlag - debug = *debugFlag // add slash 🎩🎸 if not provided if !strings.HasSuffix(repoDestinationPre, "/") { diff --git a/cmd/gogitlabber/main.go b/cmd/gogitlabber/main.go index d262823..08d07a8 100644 --- a/cmd/gogitlabber/main.go +++ b/cmd/gogitlabber/main.go @@ -7,11 +7,11 @@ import ( // userdata var concurrency int +var debug bool var gitlabHost string var gitlabToken string var includeArchived string var repoDestinationPre string -var debug bool // keep count 🧛 var clonedCount int diff --git a/readme.md b/readme.md index 732673c..6fa24f1 100644 --- a/readme.md +++ b/readme.md @@ -26,6 +26,7 @@ Usage of gogitlabber: Toggle debug mode example: -debug=true env = GOGITLABBER_DEBUG + (default false) -destination string Specify where to check the repositories out