Преглед изворни кода

Merge pull request #4491 from crosbymichael/add-pull-dep

Add deprecation warning for -t on pull
Victor Vieux пре 11 година
родитељ
комит
3715f46b8b
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      api/client.go

+ 2 - 2
api/client.go

@@ -1055,8 +1055,8 @@ func (cli *DockerCli) CmdPush(args ...string) error {
 }
 
 func (cli *DockerCli) CmdPull(args ...string) error {
-	cmd := cli.Subcmd("pull", "NAME", "Pull an image or a repository from the registry")
-	tag := cmd.String([]string{"t", "-tag"}, "", "Download tagged image in repository")
+	cmd := cli.Subcmd("pull", "NAME[:TAG]", "Pull an image or a repository from the registry")
+	tag := cmd.String([]string{"#t", "#-tag"}, "", "Download tagged image in repository")
 	if err := cmd.Parse(args); err != nil {
 		return nil
 	}