diff --git a/cli/cobra.go b/cli/cobra.go index feab2b4a91..e6bcc90fa1 100644 --- a/cli/cobra.go +++ b/cli/cobra.go @@ -518,4 +518,4 @@ Run '{{.CommandPath}} COMMAND --help' for more information on a command. ` const helpTemplate = ` -{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}` +{{- if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}` diff --git a/e2e/cli-plugins/testdata/docker-help-helloworld-goodbye.golden b/e2e/cli-plugins/testdata/docker-help-helloworld-goodbye.golden index b683120cf3..fb8cccd564 100644 --- a/e2e/cli-plugins/testdata/docker-help-helloworld-goodbye.golden +++ b/e2e/cli-plugins/testdata/docker-help-helloworld-goodbye.golden @@ -1,4 +1,3 @@ - Usage: docker helloworld goodbye Say Goodbye instead of Hello diff --git a/e2e/cli-plugins/testdata/docker-help-helloworld.golden b/e2e/cli-plugins/testdata/docker-help-helloworld.golden index bea200b142..e06dda3b0e 100644 --- a/e2e/cli-plugins/testdata/docker-help-helloworld.golden +++ b/e2e/cli-plugins/testdata/docker-help-helloworld.golden @@ -1,4 +1,3 @@ - Usage: docker helloworld [OPTIONS] COMMAND A basic Hello World plugin for tests diff --git a/e2e/stack/testdata/stack-deploy-help.golden b/e2e/stack/testdata/stack-deploy-help.golden index 3ebe9299f3..91e9c8300a 100644 --- a/e2e/stack/testdata/stack-deploy-help.golden +++ b/e2e/stack/testdata/stack-deploy-help.golden @@ -1,4 +1,3 @@ - Usage: docker stack deploy [OPTIONS] STACK Deploy a new stack or update an existing stack