Skip to content

Commit ef93dab

Browse files
authored
Merge pull request #30 from NETWAYS/fix/retrun_message_on_unknown_flag
Fixes message on unkown flag
2 parents e120891 + 06d9b60 commit ef93dab

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

config.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package check
22

33
import (
4-
"errors"
54
"fmt"
65
"os"
76
"path"
@@ -64,11 +63,7 @@ func (c *Config) ParseArray(arguments []string) {
6463

6564
err := c.FlagSet.Parse(arguments)
6665
if err != nil {
67-
if errors.Is(err, flag.ErrHelp) {
68-
ExitError(err)
69-
} else {
70-
BaseExit(3)
71-
}
66+
ExitError(err)
7267
}
7368

7469
if c.PrintVersion {

0 commit comments

Comments
 (0)