From 2a5a402c717fa0ff05b7e57e85bf3388ba1ee1a5 Mon Sep 17 00:00:00 2001 From: Peggy Li Date: Wed, 25 Mar 2015 16:26:28 -0700 Subject: [PATCH] Update CmdCommit docstring and fix CmdHelp whitespace Signed-off-by: Peggy Li --- api/client/commit.go | 4 ++-- api/client/help.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/client/commit.go b/api/client/commit.go index 4500f3b424..4214cffce5 100644 --- a/api/client/commit.go +++ b/api/client/commit.go @@ -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") diff --git a/api/client/help.go b/api/client/help.go index 2f2d50bbf2..e95387967a 100644 --- a/api/client/help.go +++ b/api/client/help.go @@ -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 {