Skip to content

Commit

Permalink
Merge pull request #30 from NETWAYS/fix/retrun_message_on_unknown_flag
Browse files Browse the repository at this point in the history
Fixes message on unkown flag
  • Loading branch information
lazyfrosch committed Apr 14, 2021
2 parents e120891 + 06d9b60 commit ef93dab
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions config.go
@@ -1,7 +1,6 @@
package check

import (
"errors"
"fmt"
"os"
"path"
Expand Down Expand Up @@ -64,11 +63,7 @@ func (c *Config) ParseArray(arguments []string) {

err := c.FlagSet.Parse(arguments)
if err != nil {
if errors.Is(err, flag.ErrHelp) {
ExitError(err)
} else {
BaseExit(3)
}
ExitError(err)
}

if c.PrintVersion {
Expand Down

0 comments on commit ef93dab

Please sign in to comment.