mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
cli: podman run/create --chrootdirs 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:
@ -595,7 +595,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions,
|
||||
_ = cmd.RegisterFlagCompletionFunc(pidFileFlagName, completion.AutocompleteDefault)
|
||||
|
||||
chrootDirsFlagName := "chrootdirs"
|
||||
createFlags.StringSliceVar(
|
||||
createFlags.StringArrayVar(
|
||||
&cf.ChrootDirs,
|
||||
chrootDirsFlagName, []string{},
|
||||
"Chroot directories inside the container",
|
||||
|
Reference in New Issue
Block a user