浏览代码

Merge pull request #6686 from SvenDowideit/commit-parens-update-6310

add missing docker commit parens (update 6310)
Victor Vieux 11 年之前
父节点
当前提交
3051ffe0fa
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      api/client/commands.go
  2. 1 1
      docs/sources/reference/commandline/cli.md

+ 1 - 1
api/client/commands.go

@@ -1520,7 +1520,7 @@ func (cli *DockerCli) CmdPs(args ...string) error {
 func (cli *DockerCli) CmdCommit(args ...string) error {
 func (cli *DockerCli) CmdCommit(args ...string) error {
 	cmd := cli.Subcmd("commit", "[OPTIONS] CONTAINER [REPOSITORY[:TAG]]", "Create a new image from a container's changes")
 	cmd := cli.Subcmd("commit", "[OPTIONS] CONTAINER [REPOSITORY[:TAG]]", "Create a new image from a container's changes")
 	flComment := cmd.String([]string{"m", "-message"}, "", "Commit message")
 	flComment := cmd.String([]string{"m", "-message"}, "", "Commit message")
-	flAuthor := cmd.String([]string{"a", "#author", "-author"}, "", "Author (eg. \"John Hannibal Smith <hannibal@a-team.com>\"")
+	flAuthor := cmd.String([]string{"a", "#author", "-author"}, "", "Author (eg. \"John Hannibal Smith <hannibal@a-team.com>\")")
 	// FIXME: --run is deprecated, it will be replaced with inline Dockerfile commands.
 	// FIXME: --run is deprecated, it will be replaced with inline Dockerfile commands.
 	flConfig := cmd.String([]string{"#run", "#-run"}, "", "this option is deprecated and will be removed in a future version in favor of inline Dockerfile-compatible commands")
 	flConfig := cmd.String([]string{"#run", "#-run"}, "", "this option is deprecated and will be removed in a future version in favor of inline Dockerfile-compatible commands")
 	if err := cmd.Parse(args); err != nil {
 	if err := cmd.Parse(args); err != nil {

+ 1 - 1
docs/sources/reference/commandline/cli.md

@@ -306,7 +306,7 @@ schema.
 
 
     Create a new image from a container's changes
     Create a new image from a container's changes
 
 
-      -a, --author=""     Author (eg. "John Hannibal Smith <hannibal@a-team.com>"
+      -a, --author=""     Author (eg. "John Hannibal Smith <hannibal@a-team.com>")
       -m, --message=""    Commit message
       -m, --message=""    Commit message
 
 
 It can be useful to commit a container's file changes or settings into a
 It can be useful to commit a container's file changes or settings into a