mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
Code cleanup and badges
This commit is contained in:
1 parent
cf4c157141
commit
a9c5d5a953
6 files changed
+32
-31
No files matched your search
+2
-11
@@ -10,7 +10,7 @@ import (
|
||||
// hittps://github.com/<user or org>
|
||||
// hittps://github.com/<user or org>/repo
|
||||
const usage = `usage: gitleaks [git link] [options]
|
||||
|
||||
|
||||
Options:
|
||||
-c Concurrency factor (potential number of git files open)
|
||||
-h --help Display this message
|
||||
@@ -39,16 +39,7 @@ func optionsNextInt(args []string, i *int) int {
|
||||
return argInt
|
||||
}
|
||||
|
||||
func optionsNextString(args []string, i *int) string {
|
||||
if len(args) > *i+1 {
|
||||
*i++
|
||||
} else {
|
||||
help()
|
||||
}
|
||||
return args[*i]
|
||||
}
|
||||
|
||||
func parseOptions(args []string, repoUrl string) *Options {
|
||||
func parseOptions(args []string) *Options {
|
||||
opts := &Options{}
|
||||
for i := 0; i < len(args); i++ {
|
||||
arg := args[i]
|
||||
|
||||
Reference in new issue
Block a user