mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
last updates?
This commit is contained in:
1 parent
2e7325ce03
commit
7dfa3f2b48
6 files changed
+35
-38
No files matched your search
+3
-3
@@ -60,13 +60,13 @@ func ParseOpts() *Options {
|
||||
_, err := parser.Parse()
|
||||
|
||||
if err != nil {
|
||||
if flagsErr, ok := err.(*flags.Error); ok && flagsErr.Type == flags.ErrHelp {
|
||||
os.Exit(0)
|
||||
if flagsErr, ok := err.(*flags.Error); ok && flagsErr.Type != flags.ErrHelp {
|
||||
parser.WriteHelp(os.Stdout)
|
||||
}
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
if len(os.Args) == 1 {
|
||||
// TODO: this will be a feature, check locally
|
||||
parser.WriteHelp(os.Stdout)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user