From 8fa7c572d41074183184decda6d795367e5e4dfa Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 1 Feb 2019 10:34:44 +0000 Subject: [PATCH] cli-plugins: use only the first word of `Use` as the name This can be obtained with the `.Name()` method. Signed-off-by: Ian Campbell --- cli-plugins/plugin/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli-plugins/plugin/plugin.go b/cli-plugins/plugin/plugin.go index c72a68bb7e..c11780b081 100644 --- a/cli-plugins/plugin/plugin.go +++ b/cli-plugins/plugin/plugin.go @@ -77,7 +77,7 @@ func PersistentPreRunE(cmd *cobra.Command, args []string) error { } func newPluginCommand(dockerCli *command.DockerCli, plugin *cobra.Command, meta manager.Metadata) *cobra.Command { - name := plugin.Use + name := plugin.Name() fullname := manager.NamePrefix + name cmd := &cobra.Command{