diff --git a/commands/compose/header.go b/commands/compose/header.go index 59b1caa..fc0a81b 100644 --- a/commands/compose/header.go +++ b/commands/compose/header.go @@ -1,6 +1,7 @@ package compose import ( + "errors" "fmt" "strings" @@ -44,6 +45,11 @@ func (Header) Execute(aerc *widgets.Aerc, args []string) error { if err != nil { return err } + + if len(args) < optind+1 { + return errors.New("command parsing failed") + } + var ( force bool = false )