mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
updating readme and options
This commit is contained in:
1 parent
bc26e979c5
commit
c0bf19fc44
2 files changed
+10
-6
No files matched your search
@@ -33,11 +33,15 @@ Gitleaks scans all lines of all commits and checks if there are any regular expr
|
||||
```
|
||||
usage: gitleaks [options] [git url]
|
||||
|
||||
|
||||
Options:
|
||||
-c Concurrency factor (potential number of git files open)
|
||||
-u Git user url
|
||||
-r Git repo url
|
||||
-o Git organization url
|
||||
-s Strict mode uses stopwords in checks.go
|
||||
-e Base64 entropy cutoff, default is 70
|
||||
-x Hex entropy cutoff, default is 40
|
||||
-h --help Display this message
|
||||
```
|
||||
|
||||
|
||||
+6
-6
@@ -13,6 +13,12 @@ const usage = `usage: gitleaks [git link] [options]
|
||||
|
||||
Options:
|
||||
-c Concurrency factor (potential number of git files open)
|
||||
-u Git user url
|
||||
-r Git repo url
|
||||
-o Git organization url
|
||||
-s Strict mode uses stopwords in checks.go
|
||||
-e Base64 entropy cutoff, default is 70
|
||||
-x Hex entropy cutoff, default is 40
|
||||
-h --help Display this message
|
||||
`
|
||||
|
||||
@@ -69,12 +75,6 @@ func parseOptions(args []string) *Options {
|
||||
HexEntropyCutoff: 40,
|
||||
}
|
||||
|
||||
// default is repo if no additional options
|
||||
if len(args) == 1 {
|
||||
opts.RepoURL = args[0]
|
||||
return opts
|
||||
}
|
||||
|
||||
for i := 0; i < len(args); i++ {
|
||||
arg := args[i]
|
||||
switch arg {
|
||||
|
||||
Reference in new issue
Block a user