From 510400acbccadd1eb29ee8bfb63d02bdcbdfb05b Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Fri, 2 Feb 2024 10:49:22 -0300 Subject: [PATCH] Update descriptions for rpk flags --- src/go/rpk/pkg/cli/cluster/health.go | 2 +- src/go/rpk/pkg/cli/registry/schema/get.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/go/rpk/pkg/cli/cluster/health.go b/src/go/rpk/pkg/cli/cluster/health.go index 28cb61a86167..b0bdc4b7cfde 100644 --- a/src/go/rpk/pkg/cli/cluster/health.go +++ b/src/go/rpk/pkg/cli/cluster/health.go @@ -68,7 +68,7 @@ following conditions are met: p.InstallSASLFlags(cmd) cmd.Flags().BoolVarP(&watch, "watch", "w", false, "Blocks and writes out all cluster health changes") - cmd.Flags().BoolVarP(&exit, "exit-when-healthy", "e", false, "Exits after cluster is back in healthy state") + cmd.Flags().BoolVarP(&exit, "exit-when-healthy", "e", false, "Exits when the cluster is back in a healthy state") return cmd } diff --git a/src/go/rpk/pkg/cli/registry/schema/get.go b/src/go/rpk/pkg/cli/registry/schema/get.go index 7197f770a80b..0fedfd255122 100644 --- a/src/go/rpk/pkg/cli/registry/schema/get.go +++ b/src/go/rpk/pkg/cli/registry/schema/get.go @@ -137,7 +137,7 @@ To print the schema, use the '--print-schema' flag. cmd.Flags().StringVar(&schemaFile, "schema", "", "Schema file to check existence of, must be .avro or .proto; subject required") cmd.Flags().StringVar(&schemaType, "type", "", fmt.Sprintf("Schema type of the file used to lookup (%v); overrides schema file extension", strings.Join(supportedTypes, ","))) cmd.Flags().BoolVar(&deleted, "deleted", false, "If true, also return deleted schemas") - cmd.Flags().BoolVar(&printSchema, "print-schema", false, "If true, print the schema JSON") + cmd.Flags().BoolVar(&printSchema, "print-schema", false, "Prints the schema in JSON format") cmd.RegisterFlagCompletionFunc("type", validTypes()) return cmd