init stopword work

This commit is contained in:
zricethezav committed 2018-02-19 16:26:18 -06:00
1 parent 840e9e873f
commit d465c3d2f1
3 files changed
+66 -30

No files matched your search

+10 -4
View File
@@ -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":