1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

fixed an issue with the help history command, printed twice

This commit is contained in:
Ken Cochrane 2013-03-25 21:33:56 -04:00
parent e4a69b1044
commit a9a439183d

View file

@ -297,7 +297,10 @@ func (srv *Server) CmdRmi(stdin io.ReadCloser, stdout io.Writer, args ...string)
func (srv *Server) CmdHistory(stdin io.ReadCloser, stdout io.Writer, args ...string) error { func (srv *Server) CmdHistory(stdin io.ReadCloser, stdout io.Writer, args ...string) error {
cmd := rcli.Subcmd(stdout, "history", "[OPTIONS] IMAGE", "Show the history of an image") cmd := rcli.Subcmd(stdout, "history", "[OPTIONS] IMAGE", "Show the history of an image")
if cmd.Parse(args) != nil || cmd.NArg() != 1 { if err := cmd.Parse(args); err != nil {
return nil
}
if cmd.NArg() != 1 {
cmd.Usage() cmd.Usage()
return nil return nil
} }