Skip to content

Commit

Permalink
cmd/vinegar: print usage on no program in exec command
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Sep 25, 2023
1 parent 772db92 commit c7b7814
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/vinegar/vinegar.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit c7b7814

Please sign in to comment.