mirror of https://github.com/docker/cli.git
refactor help func in CLI
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
28f8f92963
commit
05ddb16e59
|
@ -34,9 +34,7 @@ func newDockerCommand(dockerCli *command.DockerCli) *cobra.Command {
|
|||
showVersion()
|
||||
return nil
|
||||
}
|
||||
cmd.SetOutput(dockerCli.Err())
|
||||
cmd.HelpFunc()(cmd, args)
|
||||
return nil
|
||||
return dockerCli.ShowHelp(cmd, args)
|
||||
},
|
||||
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
// daemon command is special, we redirect directly to another binary
|
||||
|
|
Loading…
Reference in New Issue