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

Update CmdCommit docstring and fix CmdHelp whitespace

Signed-off-by: Peggy Li <peggyli.224@gmail.com>
This commit is contained in:
Peggy Li 2015-03-25 16:26:28 -07:00
parent b5d0380108
commit 2a5a402c71
2 changed files with 3 additions and 3 deletions

View file

@ -14,9 +14,9 @@ import (
"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 {
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")

View file

@ -9,7 +9,7 @@ import (
// 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
func (cli *DockerCli) CmdHelp(args ...string) error {