docs: small improvements
This commit is contained in:
parent
21ca8de699
commit
bc73292fca
3 changed files with 4 additions and 3 deletions
|
|
@ -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, "/") {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue