diff --git a/cmd/vinegar/vinegar.go b/cmd/vinegar/vinegar.go index 5967c926..cc42903a 100644 --- a/cmd/vinegar/vinegar.go +++ b/cmd/vinegar/vinegar.go @@ -67,6 +67,10 @@ func main() { switch cmd { case "exec": + if len(args) < 2 { + usage() + } + if err := pfx.Wine(args[1], args[2:]...).Run(); err != nil { log.Fatal(err) }