mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
cli: podman run/create --label-file use StringArray()
This option accepts a file path so we should allow commas in it. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -772,7 +772,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions,
|
|||||||
_ = cmd.RegisterFlagCompletionFunc(labelFlagName, completion.AutocompleteNone)
|
_ = cmd.RegisterFlagCompletionFunc(labelFlagName, completion.AutocompleteNone)
|
||||||
|
|
||||||
labelFileFlagName := "label-file"
|
labelFileFlagName := "label-file"
|
||||||
createFlags.StringSliceVar(
|
createFlags.StringArrayVar(
|
||||||
&cf.LabelFile,
|
&cf.LabelFile,
|
||||||
labelFileFlagName, []string{},
|
labelFileFlagName, []string{},
|
||||||
"Read in a line delimited file of labels",
|
"Read in a line delimited file of labels",
|
||||||
|
Reference in New Issue
Block a user