Browse code

plugins: fix usage for plugin commands

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 65ed9daf70ccf0027f4eac8049667130deb249ed)

Tibor Vass authored on 2016/06/18 01:14:23
Showing 6 changed files
... ...
@@ -11,7 +11,7 @@ import (
11 11
 
12 12
 func newDisableCommand(dockerCli *client.DockerCli) *cobra.Command {
13 13
 	cmd := &cobra.Command{
14
-		Use:   "disable",
14
+		Use:   "disable PLUGIN",
15 15
 		Short: "Disable a plugin",
16 16
 		Args:  cli.ExactArgs(1),
17 17
 		RunE: func(cmd *cobra.Command, args []string) error {
... ...
@@ -11,7 +11,7 @@ import (
11 11
 
12 12
 func newEnableCommand(dockerCli *client.DockerCli) *cobra.Command {
13 13
 	cmd := &cobra.Command{
14
-		Use:   "enable",
14
+		Use:   "enable PLUGIN",
15 15
 		Short: "Enable a plugin",
16 16
 		Args:  cli.ExactArgs(1),
17 17
 		RunE: func(cmd *cobra.Command, args []string) error {
... ...
@@ -13,7 +13,7 @@ import (
13 13
 
14 14
 func newInspectCommand(dockerCli *client.DockerCli) *cobra.Command {
15 15
 	cmd := &cobra.Command{
16
-		Use:   "inspect",
16
+		Use:   "inspect PLUGIN",
17 17
 		Short: "Inspect a plugin",
18 18
 		Args:  cli.ExactArgs(1),
19 19
 		RunE: func(cmd *cobra.Command, args []string) error {
... ...
@@ -16,7 +16,7 @@ import (
16 16
 
17 17
 func newPushCommand(dockerCli *client.DockerCli) *cobra.Command {
18 18
 	cmd := &cobra.Command{
19
-		Use:   "push",
19
+		Use:   "push PLUGIN",
20 20
 		Short: "Push a plugin",
21 21
 		Args:  cli.ExactArgs(1),
22 22
 		RunE: func(cmd *cobra.Command, args []string) error {
... ...
@@ -13,7 +13,7 @@ import (
13 13
 
14 14
 func newRemoveCommand(dockerCli *client.DockerCli) *cobra.Command {
15 15
 	cmd := &cobra.Command{
16
-		Use:     "rm",
16
+		Use:     "rm PLUGIN",
17 17
 		Short:   "Remove a plugin",
18 18
 		Aliases: []string{"remove"},
19 19
 		Args:    cli.RequiresMinArgs(1),
... ...
@@ -12,7 +12,7 @@ import (
12 12
 
13 13
 func newSetCommand(dockerCli *client.DockerCli) *cobra.Command {
14 14
 	cmd := &cobra.Command{
15
-		Use:   "set",
15
+		Use:   "set PLUGIN key1=value1 [key2=value2...]",
16 16
 		Short: "Change settings for a plugin",
17 17
 		Args:  cli.RequiresMinArgs(2),
18 18
 		RunE: func(cmd *cobra.Command, args []string) error {