docs: small improvements

This commit is contained in:
Simon Cornet 2025-03-05 12:14:06 +01:00
commit bc73292fca
3 changed files with 4 additions and 3 deletions

View file

@ -91,17 +91,17 @@ func manageArguments() {
var debugFlag = flag.Bool( var debugFlag = flag.Bool(
"debug", "debug",
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() flag.Parse()
// Override with flag values (higher precedence) // Override with flag values (higher precedence)
concurrency = *concurrencyFlag concurrency = *concurrencyFlag
debug = *debugFlag
gitlabHost = *hostFlag gitlabHost = *hostFlag
gitlabToken = *tokenFlag gitlabToken = *tokenFlag
includeArchived = *archivedFlag includeArchived = *archivedFlag
repoDestinationPre = *destinationFlag repoDestinationPre = *destinationFlag
debug = *debugFlag
// add slash 🎩🎸 if not provided // add slash 🎩🎸 if not provided
if !strings.HasSuffix(repoDestinationPre, "/") { if !strings.HasSuffix(repoDestinationPre, "/") {

View file

@ -7,11 +7,11 @@ import (
// userdata // userdata
var concurrency int var concurrency int
var debug bool
var gitlabHost string var gitlabHost string
var gitlabToken string var gitlabToken string
var includeArchived string var includeArchived string
var repoDestinationPre string var repoDestinationPre string
var debug bool
// keep count 🧛 // keep count 🧛
var clonedCount int var clonedCount int

View file

@ -26,6 +26,7 @@ Usage of gogitlabber:
Toggle debug mode Toggle debug mode
example: -debug=true example: -debug=true
env = GOGITLABBER_DEBUG env = GOGITLABBER_DEBUG
(default false)
-destination string -destination string
Specify where to check the repositories out Specify where to check the repositories out