refactor help func in CLI
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user