Переглянути джерело

Add [OPTIONS] to usage of `plugin disable|push`

Signed-off-by: Harald Albers <github@albersweb.de>
Harald Albers 8 роки тому
батько
коміт
aad095f573

+ 1 - 1
cli/command/plugin/disable.go

@@ -14,7 +14,7 @@ func newDisableCommand(dockerCli *command.DockerCli) *cobra.Command {
 	var force bool
 
 	cmd := &cobra.Command{
-		Use:   "disable PLUGIN",
+		Use:   "disable [OPTIONS] PLUGIN",
 		Short: "Disable a plugin",
 		Args:  cli.ExactArgs(1),
 		RunE: func(cmd *cobra.Command, args []string) error {

+ 1 - 1
cli/command/plugin/push.go

@@ -16,7 +16,7 @@ import (
 
 func newPushCommand(dockerCli *command.DockerCli) *cobra.Command {
 	cmd := &cobra.Command{
-		Use:   "push PLUGIN[:TAG]",
+		Use:   "push [OPTIONS] PLUGIN[:TAG]",
 		Short: "Push a plugin to a registry",
 		Args:  cli.ExactArgs(1),
 		RunE: func(cmd *cobra.Command, args []string) error {

+ 1 - 1
docs/reference/commandline/plugin_disable.md

@@ -16,7 +16,7 @@ keywords: "plugin, disable"
 # plugin disable
 
 ```markdown
-Usage:  docker plugin disable PLUGIN
+Usage:  docker plugin disable [OPTIONS] PLUGIN
 
 Disable a plugin
 

+ 1 - 1
docs/reference/commandline/plugin_push.md

@@ -14,7 +14,7 @@ keywords: "plugin, push"
 -->
 
 ```markdown
-Usage:	docker plugin push PLUGIN[:TAG]
+Usage:	docker plugin push [OPTIONS] PLUGIN[:TAG]
 
 Push a plugin to a registry