Skip to content

Commit

Permalink
Fixes message on unkown flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Dorschner committed Apr 14, 2021
1 parent e120891 commit 06d9b60
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 06d9b60

Please sign in to comment.