From f7e42c9bcbb7e11bdfc6d9c80add572867b442a8 Mon Sep 17 00:00:00 2001 From: Serge Smertin Date: Tue, 7 Nov 2023 23:31:00 +0100 Subject: [PATCH] Hide `--progress-format` global flag At the moment, these flags are mostly used for VSCode integration for bundles, but they're not effective for the majority of commands. --- cmd/root/progress_logger.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/root/progress_logger.go b/cmd/root/progress_logger.go index 328b994768..c05ecb0437 100644 --- a/cmd/root/progress_logger.go +++ b/cmd/root/progress_logger.go @@ -56,7 +56,9 @@ func initProgressLoggerFlag(cmd *cobra.Command, logFlags *logFlags) *progressLog f.Set(v) } - cmd.PersistentFlags().Var(&f.ProgressLogFormat, "progress-format", "format for progress logs (append, inplace, json)") + flags := cmd.PersistentFlags() + flags.Var(&f.ProgressLogFormat, "progress-format", "format for progress logs (append, inplace, json)") + flags.MarkHidden("progress-format") cmd.RegisterFlagCompletionFunc("progress-format", f.ProgressLogFormat.Complete) return &f }