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

Merge pull request #18167 from duglin/FixTagHelp

Add more to tag's -f flag's help
This commit is contained in:
James Turnbull 2015-11-23 11:59:22 -05:00
commit 097bc4881f
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ import (
// Usage: docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG] // Usage: docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]
func (cli *DockerCli) CmdTag(args ...string) error { func (cli *DockerCli) CmdTag(args ...string) error {
cmd := Cli.Subcmd("tag", []string{"IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]"}, Cli.DockerCommands["tag"].Description, true) cmd := Cli.Subcmd("tag", []string{"IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]"}, Cli.DockerCommands["tag"].Description, true)
force := cmd.Bool([]string{"f", "-force"}, false, "Force") force := cmd.Bool([]string{"f", "-force"}, false, "Force the tagging even if there's a conflict")
cmd.Require(flag.Exact, 2) cmd.Require(flag.Exact, 2)
cmd.ParseFlags(args, true) cmd.ParseFlags(args, true)

View file

@ -14,7 +14,7 @@ parent = "smn_cli"
Tag an image into a repository Tag an image into a repository
-f, --force=false Force -f, --force=false Force the tagging even if there's a conflict
--help=false Print usage --help=false Print usage
You can group your images together using names and tags, and then upload them You can group your images together using names and tags, and then upload them