mirror of https://github.com/docker/cli.git
91b1ad9d2b
This flag was added in Docker 17.06, API version 1.31 through moby@8dc8cd4719f165c01c98e7d3ce1d6cea6a8f60b8, but didn't add API-version annotations. This patch adds the missing annotations to hide this flag if the CLI is connected to an older version of the daemon that doesn't support that API. Before this patch: DOCKER_API_VERSION=1.30 docker swarm init --help | grep data-path-addr --data-path-addr string Address or interface to use for data path traffic (format: <ip|interface>) DOCKER_API_VERSION=1.31 docker swarm init --help | grep data-path-addr --data-path-addr string Address or interface to use for data path traffic (format: <ip|interface>) With this patch applied: DOCKER_API_VERSION=1.30 docker swarm init --help | grep data-path-addr # (no result) DOCKER_API_VERSION=1.31 docker swarm init --help | grep data-path-addr --data-path-addr string Address or interface to use for data path traffic (format: <ip|interface>) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
progress | ||
testdata | ||
ca.go | ||
ca_test.go | ||
client_test.go | ||
cmd.go | ||
init.go | ||
init_test.go | ||
join.go | ||
join_test.go | ||
join_token.go | ||
join_token_test.go | ||
leave.go | ||
leave_test.go | ||
opts.go | ||
opts_test.go | ||
unlock.go | ||
unlock_key.go | ||
unlock_key_test.go | ||
unlock_test.go | ||
update.go | ||
update_test.go |