Selaa lähdekoodia

Update CmdCommit docstring and fix CmdHelp whitespace

Signed-off-by: Peggy Li <peggyli.224@gmail.com>
Peggy Li 10 vuotta sitten
vanhempi
commit
2a5a402c71
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 2 2
      api/client/commit.go
  2. 1 1
      api/client/help.go

+ 2 - 2
api/client/commit.go

@@ -14,9 +14,9 @@ import (
 	"github.com/docker/docker/utils"
 	"github.com/docker/docker/utils"
 )
 )
 
 
-// CmdAttach attaches to a running container.
+// CmdCommit creates a new image from a container's changes.
 //
 //
-// Usage: docker attach [OPTIONS] CONTAINER
+// Usage: docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
 func (cli *DockerCli) CmdCommit(args ...string) error {
 func (cli *DockerCli) CmdCommit(args ...string) error {
 	cmd := cli.Subcmd("commit", "CONTAINER [REPOSITORY[:TAG]]", "Create a new image from a container's changes", true)
 	cmd := cli.Subcmd("commit", "CONTAINER [REPOSITORY[:TAG]]", "Create a new image from a container's changes", true)
 	flPause := cmd.Bool([]string{"p", "-pause"}, true, "Pause container during commit")
 	flPause := cmd.Bool([]string{"p", "-pause"}, true, "Pause container during commit")

+ 1 - 1
api/client/help.go

@@ -9,7 +9,7 @@ import (
 
 
 // CmdHelp displays information on a Docker command.
 // CmdHelp displays information on a Docker command.
 //
 //
-//If more than one command is specified, information is only shown for the first command.
+// If more than one command is specified, information is only shown for the first command.
 //
 //
 // Usage: docker help COMMAND or docker COMMAND --help
 // Usage: docker help COMMAND or docker COMMAND --help
 func (cli *DockerCli) CmdHelp(args ...string) error {
 func (cli *DockerCli) CmdHelp(args ...string) error {