From 7e15d136bb627d2bc66ae0563d42c9bc25177408 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 16 Aug 2021 12:32:16 +0200 Subject: [PATCH] cli.SetupRootCommand(): minor cleanup Had this in a branch locally, so thought I'd open as a PR Signed-off-by: Sebastiaan van Stijn --- cli/cobra.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cli/cobra.go b/cli/cobra.go index 9ded6b6e1d..d3ce7ff165 100644 --- a/cli/cobra.go +++ b/cli/cobra.go @@ -58,11 +58,8 @@ func setupCommonRootCommand(rootCmd *cobra.Command) (*cliflags.ClientOptions, *p // SetupRootCommand sets default usage, help, and error handling for the // root command. func SetupRootCommand(rootCmd *cobra.Command) (*cliflags.ClientOptions, *pflag.FlagSet, *cobra.Command) { - opts, flags, helpCmd := setupCommonRootCommand(rootCmd) - rootCmd.SetVersionTemplate("Docker version {{.Version}}\n") - - return opts, flags, helpCmd + return setupCommonRootCommand(rootCmd) } // SetupPluginRootCommand sets default usage, help and error handling for a plugin root command.