Skip to content

Commit

Permalink
Do not hide outputFlag in help
Browse files Browse the repository at this point in the history
  • Loading branch information
Menghua1 committed Jan 2, 2025
1 parent 9b60cbc commit 24ff772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/azd/pkg/output/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func AddOutputFlag(f *pflag.FlagSet, s *string, supportedFormats []Format, defau
description := fmt.Sprintf("The output format (the supported formats are %s).", strings.Join(formatNames, ", "))
f.StringVarP(s, outputFlagName, "o", string(defaultFormat), description)
//preview:flag hide --output
_ = f.MarkHidden(outputFlagName)
// _ = f.MarkHidden(outputFlagName)

// Only error that can occur is "flag not found", which is not possible given we just added the flag on the previous line
_ = f.SetAnnotation(outputFlagName, supportedFormatterAnnotation, formatNames)
Expand Down

0 comments on commit 24ff772

Please sign in to comment.