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

+ 1 - 9
README.md

@@ -22,22 +22,14 @@ Gitleaks audits local and remote repos by running regex checks against all commi
 usage: gitleaks [options] <URL>/<path_to_repo>
 
 Options:
-Modes
  -u --user              Git user mode
  -r --repo              Git repo mode
  -o --org               Git organization mode
  -l --local             Local mode, gitleaks will look for local repo in <path>
-
-Logging
- --log=<INT>            0: Debug, 1: Info, 3: Error
+ -t --temp              Clone to temporary directory
  -v --verbose           Verbose mode, will output leaks as gitleaks finds them
-
-Locations
  --report_path=<STR>    Report output, default $GITLEAKS_HOME/report
  --clone_path=<STR>     Gitleaks will clone repos here, default $GITLEAKS_HOME/clones
-
-Other
- -t --temp              Clone to temporary directory
  --concurrency=<INT>    Upper bound on concurrent diffs
  --since=<STR>          Commit to stop at
  --b64Entropy=<INT>     Base64 entropy cutoff (default is 70)

+ 0 - 2
options.go

@@ -188,8 +188,6 @@ func (opts *Options) parseOptions(args []string) error {
 				opts.ReportPath = value
 			} else if match, value := opts.optString(arg, "--clone-path="); match {
 				opts.ClonePath = value
-			} else if match, value := opts.optInt(arg, "--log="); match {
-				opts.LogLevel = value
 			} else if match, value := opts.optInt(arg, "--b64Entropy="); match {
 				opts.B64EntropyCutoff = value
 			} else if match, value := opts.optInt(arg, "--hexEntropy="); match {