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> |
||
---|---|---|
.. | ||
docker-badmeta-err.golden | ||
docker-help-badmeta-err.golden | ||
docker-help-helloworld-goodbye.golden | ||
docker-help-helloworld.golden | ||
docker-help-nonexistent-err.golden | ||
docker-nonexistent-err.golden |