Browse code

Add options for docker plugin enable and fix some typos

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>

yuexiao-wang authored on 2016/11/25 05:07:06
Showing 4 changed files
... ...
@@ -20,7 +20,7 @@ func newEnableCommand(dockerCli *command.DockerCli) *cobra.Command {
20 20
 	var opts enableOpts
21 21
 
22 22
 	cmd := &cobra.Command{
23
-		Use:   "enable PLUGIN",
23
+		Use:   "enable [OPTIONS] PLUGIN",
24 24
 		Short: "Enable a plugin",
25 25
 		Args:  cli.ExactArgs(1),
26 26
 		RunE: func(cmd *cobra.Command, args []string) error {
... ...
@@ -26,7 +26,6 @@ Usage: docker [OPTIONS] COMMAND [ARG...]
26 26
 A self-sufficient runtime for containers.
27 27
 
28 28
 Options:
29
-
30 29
       --config string      Location of client config files (default "/root/.docker")
31 30
   -D, --debug              Enable debug mode
32 31
       --help               Print usage
... ...
@@ -72,8 +71,8 @@ by the `docker` command line:
72 72
   to the same URL as the registry.
73 73
 * `DOCKER_TMPDIR` Location for temporary Docker files.
74 74
 
75
-Because Docker is developed using 'Go', you can also use any environment
76
-variables used by the 'Go' runtime. In particular, you may find these useful:
75
+Because Docker is developed using Go, you can also use any environment
76
+variables used by the Go runtime. In particular, you may find these useful:
77 77
 
78 78
 * `HTTP_PROXY`
79 79
 * `HTTPS_PROXY`
... ...
@@ -22,7 +22,6 @@ Usage: dockerd [OPTIONS]
22 22
 A self-sufficient runtime for containers.
23 23
 
24 24
 Options:
25
-
26 25
       --add-runtime value                     Register an additional OCI compatible runtime (default [])
27 26
       --api-cors-header string                Set CORS headers in the Engine API
28 27
       --authorization-plugin value            Authorization plugins to load (default [])
... ...
@@ -16,7 +16,7 @@ keywords: "plugin, enable"
16 16
 # plugin enable
17 17
 
18 18
 ```markdown
19
-Usage:  docker plugin enable PLUGIN
19
+Usage:  docker plugin enable [OPTIONS] PLUGIN
20 20
 
21 21
 Enable a plugin
22 22