Skip to content

Commit

Permalink
Error when no cmd given
Browse files Browse the repository at this point in the history
  • Loading branch information
mtibben committed Apr 18, 2020
1 parent 38262fd commit 8ad90a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ func ConfigureExecCommand(app *kingpin.Application) {
if input.Command == "" {
input.Command, input.Args = getDefaultShellCmd()
}
if input.Command == "" {
app.Fatalf("Argument 'cmd' not provided, and SHELL not present, try --help")
}
app.FatalIfError(ExecCommand(input), "exec")
return nil
})
Expand Down

0 comments on commit 8ad90a6

Please sign in to comment.