Files
docker-cli/cli/command
Sebastiaan van Stijn 91b1ad9d2b Add API-version anotation for --data-path-addr
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>
2018-07-30 11:05:20 +02:00
..
2018-06-08 18:24:26 +02:00
2018-06-08 18:24:26 +02:00
2018-07-13 11:18:50 +02:00
2018-06-08 18:24:26 +02:00
2018-06-08 18:24:26 +02:00
2018-07-13 11:18:50 +02:00
2018-07-17 09:14:05 -05:00
2018-06-08 18:24:26 +02:00
2018-07-13 11:18:50 +02:00
2017-09-01 19:41:06 -04:00
2017-05-03 18:41:19 -07:00
2017-09-01 19:41:06 -04:00
2018-06-08 18:24:26 +02:00
2017-05-03 18:41:19 -07:00