aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/compose/header.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/commands/compose/header.go b/commands/compose/header.go
index 59b1caac..fc0a81b2 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
)