Skip to content

Commit 7648510

Browse files
author
Hernan Garcia
committed
docker swarm init: fix help printing
Signed-off-by: Hernan Garcia <hernan.garcia@percona.com>
1 parent dc2eb3b commit 7648510

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/docker/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func setHelpFunc(dockerCli command.Cli, cmd *cobra.Command) {
137137
return
138138
}
139139

140-
if len(args) >= 1 {
140+
if len(args) >= 1 && ccmd.Root() == ccmd.Parent() {
141141
err := tryRunPluginHelp(dockerCli, ccmd, args)
142142
if err == nil {
143143
return

0 commit comments

Comments
 (0)