Browse code

update command description

Signed-off-by: allencloud <allen.sun@daocloud.io>

allencloud authored on 2016/08/31 00:07:42
Showing 6 changed files
... ...
@@ -24,7 +24,7 @@ func NewRestartCommand(dockerCli *client.DockerCli) *cobra.Command {
24 24
 
25 25
 	cmd := &cobra.Command{
26 26
 		Use:   "restart [OPTIONS] CONTAINER [CONTAINER...]",
27
-		Short: "Restart a container",
27
+		Short: "Restart one or more containers",
28 28
 		Args:  cli.RequiresMinArgs(1),
29 29
 		RunE: func(cmd *cobra.Command, args []string) error {
30 30
 			opts.containers = args
... ...
@@ -21,7 +21,7 @@ func NewWaitCommand(dockerCli *client.DockerCli) *cobra.Command {
21 21
 
22 22
 	cmd := &cobra.Command{
23 23
 		Use:   "wait CONTAINER [CONTAINER...]",
24
-		Short: "Block until a container stops, then print its exit code",
24
+		Short: "Block until one or more containers stop, then print their exit codes",
25 25
 		Args:  cli.RequiresMinArgs(1),
26 26
 		RunE: func(cmd *cobra.Command, args []string) error {
27 27
 			opts.containers = args
... ...
@@ -22,8 +22,8 @@ func newInspectCommand(dockerCli *client.DockerCli) *cobra.Command {
22 22
 	var opts inspectOptions
23 23
 
24 24
 	cmd := &cobra.Command{
25
-		Use:   "inspect PLUGIN",
26
-		Short: "Inspect a plugin",
25
+		Use:   "inspect [OPTIONS] PLUGIN [PLUGIN...]",
26
+		Short: "Display detailed information on one or more plugins",
27 27
 		Args:  cli.RequiresMinArgs(1),
28 28
 		RunE: func(cmd *cobra.Command, args []string) error {
29 29
 			opts.pluginNames = args
... ...
@@ -20,7 +20,7 @@ func newRemoveCommand(dockerCli *client.DockerCli) *cobra.Command {
20 20
 	var opts removeOptions
21 21
 
22 22
 	cmd := &cobra.Command{
23
-		Use:     "rm [OPTIONS] VOLUME [VOLUME]...",
23
+		Use:     "rm [OPTIONS] VOLUME [VOLUME...]",
24 24
 		Aliases: []string{"remove"},
25 25
 		Short:   "Remove one or more volumes",
26 26
 		Long:    removeDescription,
... ...
@@ -13,7 +13,7 @@ parent = "smn_cli"
13 13
 ```markdown
14 14
 Usage:  docker restart [OPTIONS] CONTAINER [CONTAINER...]
15 15
 
16
-Restart a container
16
+Restart one or more containers
17 17
 
18 18
 Options:
19 19
       --help       Print usage
... ...
@@ -13,7 +13,7 @@ parent = "smn_cli"
13 13
 ```markdown
14 14
 Usage:  docker wait CONTAINER [CONTAINER...]
15 15
 
16
-Block until a container stops, then print its exit code
16
+Block until one or more containers stop, then print their exit codes
17 17
 
18 18
 Options:
19 19
       --help   Print usage