Skip to content

Commit

Permalink
Merge pull request #5291 from cleverhu/add-shorthand-for-labels-columns
Browse files Browse the repository at this point in the history
Add shorthand for labels columns
  • Loading branch information
blackpiglet authored Sep 15, 2022
2 parents 100d6b4 + 5e6111e commit a05fc49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/unreleased/5291-cleverhu
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add more detailed comments for labels columns.
2 changes: 1 addition & 1 deletion pkg/cmd/util/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const downloadRequestTimeout = 30 * time.Second
func BindFlags(flags *pflag.FlagSet) {
flags.StringP("output", "o", "table", "Output display format. For create commands, display the object but do not send it to the server. Valid formats are 'table', 'json', and 'yaml'. 'table' is not valid for the install command.")
labelColumns := flag.NewStringArray()
flags.Var(&labelColumns, "label-columns", "A comma-separated list of labels to be displayed as columns")
flags.VarP(&labelColumns, "label-columns", "L", "Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag options like -L label1 -L label2...")
flags.Bool("show-labels", false, "Show labels in the last column")
}

Expand Down

0 comments on commit a05fc49

Please sign in to comment.