From c0bf19fc44cb97255d1e558a8d442ab3175d5e01 Mon Sep 17 00:00:00 2001 From: zricethezav Date: Mon, 19 Feb 2018 19:00:30 -0600 Subject: [PATCH] updating readme and options --- README.md | 4 ++++ options.go | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f6886bd5..97eefd37 100644 --- a/README.md +++ b/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 ``` diff --git a/options.go b/options.go index 0d3b5459..d99e54b4 100644 --- a/options.go +++ b/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 {