Merge pull request #16847 from vrothberg/fix-16845

create/pull --help: list pull policies
This commit is contained in:
OpenShift Merge Robot
2022-12-15 09:57:05 -05:00
committed by GitHub

View File

@ -366,7 +366,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions,
createFlags.StringVar( createFlags.StringVar(
&cf.Pull, &cf.Pull,
pullFlagName, cf.Pull, pullFlagName, cf.Pull,
`Pull image policy`, `Pull image policy ("always"|"missing"|"never"|"newer")`,
) )
_ = cmd.RegisterFlagCompletionFunc(pullFlagName, AutocompletePullOption) _ = cmd.RegisterFlagCompletionFunc(pullFlagName, AutocompletePullOption)