DockerCLI/e2e
Ian Campbell 935d47bbe9 Ignore unknown arguments on the top-level command.
This allows passing argument to plugins, otherwise they are caught by the parse
loop, since cobra does not know about each plugin at this stage (to avoid
having to always scan for all plugins) this means that e.g. `docker plugin
--foo` would accumulate `plugin` as an arg to the `docker` command, then choke
on the unknown `--foo`.

This allows unknown global args only, unknown arguments on subcommands (e.g.
`docker ps --foo`) are still correctly caught.

Add an e2e test covering this case.

Signed-off-by: Ian Campbell <ijc@docker.com>
2019-01-30 13:45:26 +00:00
..
cli-plugins Ignore unknown arguments on the top-level command. 2019-01-30 13:45:26 +00:00
container Add missing test 2018-11-26 14:02:16 +00:00
image Add option to pull images quietly 2018-12-19 13:48:41 +01:00
internal/fixtures Add missing test 2018-11-26 14:02:16 +00:00
plugin Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
stack Fix some typo 2018-09-07 17:18:00 +08:00
system Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
testdata Add missing test 2018-11-26 14:02:16 +00:00
trust Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
compose-env.connhelper-ssh.yaml connhelper: add e2e 2018-09-30 10:24:34 +09:00
compose-env.experimental.yaml Make test-e2e run against experimental and non-experimental daemon 2018-06-25 11:46:35 +02:00
compose-env.yaml Add missing test 2018-11-26 14:02:16 +00:00