From 615778b5e635342522e22ff5f1d495923b9bfa66 Mon Sep 17 00:00:00 2001 From: Tomer Avital Date: Tue, 11 Aug 2026 17:28:18 +0300 Subject: [PATCH] Update PPC help description. Align `ppc -h` and `ppc info -h` with the current CLI: describe info as cluster topology from must-gather, document default text output and `--json`/`--text`, and drop the stale `log,json` wording. Signed-off-by: Tomer Avital --- pkg/performanceprofile/profilecreator/cmd/info.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkg/performanceprofile/profilecreator/cmd/info.go b/pkg/performanceprofile/profilecreator/cmd/info.go index 331d1e89b..b5a71a306 100644 --- a/pkg/performanceprofile/profilecreator/cmd/info.go +++ b/pkg/performanceprofile/profilecreator/cmd/info.go @@ -10,11 +10,6 @@ import ( "github.com/spf13/cobra" ) -const ( - infoModeJSON = "json" - infoModeLog = "log" -) - type infoOptions struct { jsonOutput bool textOutput bool @@ -26,13 +21,13 @@ func NewInfoCommand(pcArgs *ProfileCreatorArgs) *cobra.Command { opts := infoOptions{} info := &cobra.Command{ Use: "info", - Short: fmt.Sprintf("requires --must-gather-dir-path, ignores other arguments. [Valid values: %s,%s]", infoModeLog, infoModeJSON), + Short: "display cluster info from must-gather, requires --must-gather-dir-path.", RunE: func(cmd *cobra.Command, args []string) error { return executeInfoMode(pcArgs.MustGatherDirPath, pcArgs.createForHypershift, &opts) }, } info.Flags().BoolVar(&opts.jsonOutput, "json", false, "output as JSON") - info.Flags().BoolVar(&opts.textOutput, "text", false, "output as plain text") + info.Flags().BoolVar(&opts.textOutput, "text", true, "output as plain text (default when no flag is specified)") return info }