podman build --pull: refine help message and docs

Refine and correct the wording of the `--pull` flag in the help message
and the docs.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2021-01-28 18:00:22 +01:00
parent c450092fde
commit c0bf0ba9e5
2 changed files with 4 additions and 3 deletions

View File

@ -106,7 +106,9 @@ func buildFlags(cmd *cobra.Command) {
logrus.Errorf("unable to set --pull to true: %v", err) logrus.Errorf("unable to set --pull to true: %v", err)
} }
flag.DefValue = "true" flag.DefValue = "true"
flag.Usage = "Always attempt to pull the image (errors are fatal)"
flags.AddFlagSet(&budFlags) flags.AddFlagSet(&budFlags)
// Add the completion functions // Add the completion functions
budCompletions := buildahCLI.GetBudFlagsCompletions() budCompletions := buildahCLI.GetBudFlagsCompletions()
completion.CompleteCommandFlags(cmd, budCompletions) completion.CompleteCommandFlags(cmd, budCompletions)

View File

@ -455,9 +455,8 @@ not required for Buildah as it supports only Linux.
#### **--pull** #### **--pull**
When the option is specified or set to "true", pull the image from the first When the option is specified or set to "true", pull the image. Raise an error
registry it is found in as listed in registries.conf. Raise an error if not if the image could not be pulled, even if the image is present locally.
found in the registries, even if the image is present locally.
If the option is disabled (with *--pull=false*) or not specified, pull the If the option is disabled (with *--pull=false*) or not specified, pull the
image from the registry only if the image is not present locally. Raise an image from the registry only if the image is not present locally. Raise an