mirror of
https://github.com/containers/podman.git
synced 2025-06-19 00:06:43 +08:00
cli: podman exec --env-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:
@ -68,7 +68,7 @@ func execFlags(cmd *cobra.Command) {
|
||||
_ = cmd.RegisterFlagCompletionFunc(envFlagName, completion.AutocompleteNone)
|
||||
|
||||
envFileFlagName := "env-file"
|
||||
flags.StringSliceVar(&envFile, envFileFlagName, []string{}, "Read in a file of environment variables")
|
||||
flags.StringArrayVar(&envFile, envFileFlagName, []string{}, "Read in a file of environment variables")
|
||||
_ = cmd.RegisterFlagCompletionFunc(envFileFlagName, completion.AutocompleteDefault)
|
||||
|
||||
flags.BoolVarP(&execOpts.Interactive, "interactive", "i", false, "Keep STDIN open even if not attached")
|
||||
|
Reference in New Issue
Block a user