mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
cli: podman run/create --device use StringArray()
This options accepts a file path so we should allow commas in it. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -814,7 +814,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions,
|
||||
_ = cmd.RegisterFlagCompletionFunc(volumeFlagName, AutocompleteVolumeFlag)
|
||||
|
||||
deviceFlagName := "device"
|
||||
createFlags.StringSliceVar(
|
||||
createFlags.StringArrayVar(
|
||||
&cf.Devices,
|
||||
deviceFlagName, devices(),
|
||||
"Add a host device to the container",
|
||||
|
Reference in New Issue
Block a user