Merge pull request #5291 from cleverhu/add-shorthand-for-labels-columns

Add shorthand for labels columns
pull/5348/head
Xun Jiang/Bruce Jiang 2022-09-15 11:24:06 +08:00 committed by GitHub
commit a05fc498b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Add more detailed comments for labels columns.

View File

@ -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")
}