mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
init stopword work
This commit is contained in:
1 parent
840e9e873f
commit
d465c3d2f1
3 files changed
+66
-30
No files matched your search
+10
-4
@@ -18,10 +18,12 @@ Options:
|
||||
|
||||
// Options for gitleaks
|
||||
type Options struct {
|
||||
Concurrency int
|
||||
UserURL string
|
||||
OrgURL string
|
||||
RepoURL string
|
||||
Concurrency int
|
||||
EntropyCutoff int
|
||||
UserURL string
|
||||
OrgURL string
|
||||
RepoURL string
|
||||
Strict bool
|
||||
}
|
||||
|
||||
// help prints the usage string and exits
|
||||
@@ -71,6 +73,10 @@ func parseOptions(args []string) *Options {
|
||||
for i := 0; i < len(args); i++ {
|
||||
arg := args[i]
|
||||
switch arg {
|
||||
case "-s":
|
||||
opts.Strict = true
|
||||
case "-e":
|
||||
opts.EntropyCutoff = optionsNextInt(args, &i)
|
||||
case "-c":
|
||||
opts.Concurrency = optionsNextInt(args, &i)
|
||||
case "-o":
|
||||
|
||||
Reference in new issue
Block a user