Skip to content

Commit

Permalink
Hook up validateOptions()
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Chlebek <eric@sensu.io>
  • Loading branch information
echlebek committed May 5, 2023
1 parent b16dbd1 commit 2dcc67a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/grill/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ func Main(a []string, stdout, stderr io.Writer) int {
return 2
}

if err := validateOptions(); err != nil {
fmt.Fprintln(stderr, err)
return 2
}

context, err := grill.DefaultTestContext(*opts.shell, *opts.preserveEnv)
if err != nil {
log.Println(err)
Expand Down

0 comments on commit 2dcc67a

Please sign in to comment.