mirror of https://github.com/docker/cli.git
935d47bbe9
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> |
||
---|---|---|
.. | ||
cli-plugins | ||
container | ||
image | ||
internal/fixtures | ||
plugin | ||
stack | ||
system | ||
testdata | ||
trust | ||
compose-env.connhelper-ssh.yaml | ||
compose-env.experimental.yaml | ||
compose-env.yaml |