zricethezav 8 лет назад
Родитель
Сommit
c0bf19fc44
2 измененных файлов с 10 добавлено и 6 удалено
  1. 4 0
      README.md
  2. 6 6
      options.go

+ 4 - 0
README.md

@@ -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
options.go

@@ -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 {