mirror of https://github.com/docker/cli.git
190dac77bd
Before this change, specifying the `--pull` flag without a value, could result in the flag after it, or the positional argument to be used as value. This patch makes sure that the value is an expected value; docker create --pull --rm hello-world docker: invalid pull option: '--rm': must be one of "always", "missing" or "never". docker run --pull --rm hello-world docker: invalid pull option: '--rm': must be one of "always", "missing" or "never". docker run --pull hello-world docker: invalid pull option: 'hello-world': must be one of "always", "missing" or "never". Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
command | ||
compose | ||
config | ||
connhelper | ||
context | ||
debug | ||
flags | ||
manifest | ||
registry/client | ||
streams | ||
trust | ||
version | ||
winresources | ||
cobra.go | ||
cobra_test.go | ||
error.go | ||
required.go | ||
required_test.go |