diff --git a/bus.go b/bus.go index 3401c29..2e01d04 100644 --- a/bus.go +++ b/bus.go @@ -3,6 +3,8 @@ package main import ( "fmt" "time" + + "github.com/alecthomas/kong" ) type BusCmdGroup struct { @@ -168,7 +170,7 @@ type BusEqCmdGroup struct { } `help:"Commands for controlling a specific EQ band of the bus." arg:""` } -func (cmd *BusEqCmdGroup) Validate() error { +func (cmd *BusEqCmdGroup) Validate(ctx kong.Context) error { if cmd.Band.Band < 1 || cmd.Band.Band > 6 { return fmt.Errorf("EQ band number must be between 1 and 6") } diff --git a/strip.go b/strip.go index 5e2a2a1..3a99b40 100644 --- a/strip.go +++ b/strip.go @@ -3,6 +3,8 @@ package main import ( "fmt" "time" + + "github.com/alecthomas/kong" ) type StripCmdGroup struct { @@ -343,7 +345,7 @@ type StripEqCmdGroup struct { } `help:"Commands for controlling a specific EQ band of the strip." arg:""` } -func (cmd *StripEqCmdGroup) Validate() error { +func (cmd *StripEqCmdGroup) Validate(ctx kong.Context) error { if cmd.Band.Band < 1 || cmd.Band.Band > 4 { return fmt.Errorf("EQ band number must be between 1 and 4") }