Code cleanup and badges

This commit is contained in:
Anton Postov committed 2018-02-17 10:51:20 +03:00
1 parent cf4c157141
commit a9c5d5a953
6 files changed
+32 -31

No files matched your search

+2 -11
View File
@@ -10,7 +10,7 @@ import (
// hittps://github.com/<user or org>
// hittps://github.com/<user or org>/repo
const usage = `usage: gitleaks [git link] [options]
Options:
-c Concurrency factor (potential number of git files open)
-h --help Display this message
@@ -39,16 +39,7 @@ func optionsNextInt(args []string, i *int) int {
return argInt
}
func optionsNextString(args []string, i *int) string {
if len(args) > *i+1 {
*i++
} else {
help()
}
return args[*i]
}
func parseOptions(args []string, repoUrl string) *Options {
func parseOptions(args []string) *Options {
opts := &Options{}
for i := 0; i < len(args); i++ {
arg := args[i]