mirror of https://github.com/docker/cli.git
8e688f17a3
This fix tries to address several issues raised in 28626 where run against a non-experimental daemon may not generate correct error message: 1. Incorrect flags were not checked against the supported features: ``` $ docker stack --nonsense unknown flag: --nonsense ``` 2. Subcommands were not checked against the supported features: ``` $ docker stack ls Error response from daemon: This node is not a swarm manager... ``` This fix address the above mentioned issues by: 1. Add a pre-check for FlagErrorFunc 2. Recursively check if a feature is supported for cmd and its parents. This fix fixes 28626. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> |
||
---|---|---|
daemon_none.go | ||
daemon_none_test.go | ||
daemon_unit_test.go | ||
daemon_unix.go | ||
docker.go | ||
docker_test.go | ||
docker_windows.go |