diff --git a/defaultActions.go b/defaultActions.go index b17640771..7190319b7 100644 --- a/defaultActions.go +++ b/defaultActions.go @@ -526,7 +526,7 @@ func ActionCobra(f func(cmd *cobra.Command, args []string, toComplete string) ([ case f == nil: return ActionValues() case c.cmd == nil: - return ActionMessage("cmd is nil [ActionCobra]") + return ActionMessage("cmd is nil [ActionCobra]") // TODO shall this be allowed? (might happen when invoked with custom context) } values, directive := f(c.cmd, c.cmd.Flags().Args(), c.Value) return compDirective(directive).ToA(values...)