Skip to content

Commit 07ff90c

Browse files
author
priyawadhwa
authored
Merge pull request #9632 from prezha/fix-TestGenerateDocs
Update generate-docs test to include --help flag
2 parents 18b0c00 + 432762f commit 07ff90c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/minikube/cmd/generate-docs_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ import (
2323
"testing"
2424

2525
"github.com/google/go-cmp/cmp"
26+
"github.com/spf13/pflag"
2627
"k8s.io/minikube/pkg/generate"
2728
)
2829

2930
func TestGenerateDocs(t *testing.T) {
31+
pflag.BoolP("help", "h", false, "") // avoid 'Docs are not updated. Please run `make generate-docs` to update commands documentation' error
3032
dir := "../../../site/content/en/docs/commands/"
3133

3234
for _, sc := range RootCmd.Commands() {

0 commit comments

Comments
 (0)