mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
repoDescriptor->repoInfo
This commit is contained in:
1 parent
e79ffc6ae8
commit
c2143c5843
9 files changed
+23
-28
No files matched your search
+3
-4
@@ -56,7 +56,7 @@ type Options struct {
|
||||
SampleConfig bool `long:"sample-config" description:"prints a sample config file"`
|
||||
}
|
||||
|
||||
func setupOpts() (*Options, error) {
|
||||
func ParseOpts() (*Options) {
|
||||
var opts Options
|
||||
parser := flags.NewParser(&opts, flags.Default)
|
||||
_, err := parser.Parse()
|
||||
@@ -86,10 +86,9 @@ func setupOpts() (*Options, error) {
|
||||
|
||||
err = opts.guard()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
log.Fatal(err)
|
||||
}
|
||||
return &opts, err
|
||||
|
||||
return &opts
|
||||
}
|
||||
|
||||
// optsGuard prevents invalid options
|
||||
|
||||
Reference in new issue
Block a user