diff --git a/doc/man_examples_test.go b/doc/man_examples_test.go index db660426..d056d253 100644 --- a/doc/man_examples_test.go +++ b/doc/man_examples_test.go @@ -8,6 +8,10 @@ import ( "github.com/spf13/cobra/doc" ) +func er(msg interface{}) { + cobra.Er(msg) +} + func ExampleGenManTree() { cmd := &cobra.Command{ Use: "test",