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>
14 lines
333 B
Plaintext
14 lines
333 B
Plaintext
|
|
Usage: docker helloworld [OPTIONS] COMMAND
|
|
|
|
A basic Hello World plugin for tests
|
|
|
|
Options:
|
|
--who string Who are we addressing? (default "World")
|
|
|
|
Commands:
|
|
apiversion Print the API version of the server
|
|
goodbye Say Goodbye instead of Hello
|
|
|
|
Run 'docker helloworld COMMAND --help' for more information on a command.
|