mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 04:04:25 +01:00
support for running gitleaks w no args
This commit is contained in:
1 parent
39c9cb617c
commit
d85c8d8abd
2 files changed
+3
-1
No files matched your search
@@ -22,6 +22,7 @@ var (
|
||||
assignRegex *regexp.Regexp
|
||||
fileDiffRegex *regexp.Regexp
|
||||
opts *Options
|
||||
pwd string
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
+2
-1
@@ -171,7 +171,8 @@ func defaultOptions() (*Options, error) {
|
||||
func (opts *Options) parseOptions(args []string) error {
|
||||
|
||||
if len(args) == 0 {
|
||||
help()
|
||||
opts.LocalMode = true
|
||||
opts.RepoPath, _ = os.Getwd()
|
||||
}
|
||||
|
||||
for i := 0; i < len(args); i++ {
|
||||
|
||||
Reference in new issue
Block a user