Skip to content

Commit

Permalink
Merge pull request #9 from liuxh0/exit-code
Browse files Browse the repository at this point in the history
Exit with code 1 when cmd.Run() returns error
  • Loading branch information
Julian Skupnjak authored Jan 25, 2021
2 parents 2cbee60 + 0844ecb commit 7ccf488
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/goml/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ func main() {
},
},
}
cmd.Run(os.Args)

err := cmd.Run(os.Args)
if err != nil {
os.Exit(1)
}
}

func getParam(c *cli.Context) {
Expand Down

0 comments on commit 7ccf488

Please sign in to comment.