Skip to content

Commit

Permalink
fix(cli): print help text without the err message (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
padlar committed Jan 10, 2023
1 parent 92ef9c0 commit 7bcbc27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func main() {
opts.BindFlags(flag.CommandLine)

pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
pflag.BoolP("help", "h", false, "Display help text and exit")
pflag.Parse()
err := viper.BindPFlags(pflag.CommandLine)
if err != nil {
Expand Down

0 comments on commit 7bcbc27

Please sign in to comment.