From 9e414bfa6b26bf919fc7ffbf0cf87814043b328b Mon Sep 17 00:00:00 2001 From: yuexiao-wang Date: Fri, 25 Nov 2016 04:07:06 +0800 Subject: [PATCH] Add options for docker plugin enable and fix some typos Signed-off-by: yuexiao-wang --- cli/command/plugin/enable.go | 2 +- docs/reference/commandline/cli.md | 5 ++--- docs/reference/commandline/dockerd.md | 1 - docs/reference/commandline/plugin_enable.md | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cli/command/plugin/enable.go b/cli/command/plugin/enable.go index d84da24668..9201e38e11 100644 --- a/cli/command/plugin/enable.go +++ b/cli/command/plugin/enable.go @@ -20,7 +20,7 @@ func newEnableCommand(dockerCli *command.DockerCli) *cobra.Command { var opts enableOpts cmd := &cobra.Command{ - Use: "enable PLUGIN", + Use: "enable [OPTIONS] PLUGIN", Short: "Enable a plugin", Args: cli.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { diff --git a/docs/reference/commandline/cli.md b/docs/reference/commandline/cli.md index 19e37f1d97..4128baf6a9 100644 --- a/docs/reference/commandline/cli.md +++ b/docs/reference/commandline/cli.md @@ -26,7 +26,6 @@ Usage: docker [OPTIONS] COMMAND [ARG...] A self-sufficient runtime for containers. Options: - --config string Location of client config files (default "/root/.docker") -D, --debug Enable debug mode --help Print usage @@ -72,8 +71,8 @@ by the `docker` command line: to the same URL as the registry. * `DOCKER_TMPDIR` Location for temporary Docker files. -Because Docker is developed using 'Go', you can also use any environment -variables used by the 'Go' runtime. In particular, you may find these useful: +Because Docker is developed using Go, you can also use any environment +variables used by the Go runtime. In particular, you may find these useful: * `HTTP_PROXY` * `HTTPS_PROXY` diff --git a/docs/reference/commandline/dockerd.md b/docs/reference/commandline/dockerd.md index 0c7a2f0019..b8bc8b712c 100644 --- a/docs/reference/commandline/dockerd.md +++ b/docs/reference/commandline/dockerd.md @@ -22,7 +22,6 @@ Usage: dockerd [OPTIONS] A self-sufficient runtime for containers. Options: - --add-runtime value Register an additional OCI compatible runtime (default []) --api-cors-header string Set CORS headers in the Engine API --authorization-plugin value Authorization plugins to load (default []) diff --git a/docs/reference/commandline/plugin_enable.md b/docs/reference/commandline/plugin_enable.md index 6b9ed76407..a1f94df051 100644 --- a/docs/reference/commandline/plugin_enable.md +++ b/docs/reference/commandline/plugin_enable.md @@ -16,7 +16,7 @@ keywords: "plugin, enable" # plugin enable ```markdown -Usage: docker plugin enable PLUGIN +Usage: docker plugin enable [OPTIONS] PLUGIN Enable a plugin