mirror of
https://github.com/containers/podman.git
synced 2025-06-19 00:06:43 +08:00
cli: podman run/create --decryption-key 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:
@ -611,7 +611,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions,
|
||||
_ = cmd.RegisterFlagCompletionFunc(groupEntryName, completion.AutocompleteNone)
|
||||
|
||||
decryptionKeysFlagName := "decryption-key"
|
||||
createFlags.StringSliceVar(
|
||||
createFlags.StringArrayVar(
|
||||
&cf.DecryptionKeys,
|
||||
decryptionKeysFlagName, []string{},
|
||||
"Key needed to decrypt the image (e.g. /path/to/key.pem)",
|
||||
|
Reference in New Issue
Block a user