From 0e5397633628ab154fae33152de7dc1fd4e122db Mon Sep 17 00:00:00 2001 From: Zhang Wei Date: Sun, 19 Jun 2016 16:26:23 +0800 Subject: [PATCH] Make --help information consistent Other docker command always print "[OPTIONS]" right after `docker COMMAND`, but `build` and `push` has inconsistent help message. This commit will fix help information format. Signed-off-by: Zhang Wei --- api/client/image/build.go | 2 +- api/client/image/push.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/client/image/build.go b/api/client/image/build.go index 9d23e8ffc9..6080aec83b 100644 --- a/api/client/image/build.go +++ b/api/client/image/build.go @@ -67,7 +67,7 @@ func NewBuildCommand(dockerCli *client.DockerCli) *cobra.Command { } cmd := &cobra.Command{ - Use: "build PATH | URL | -", + Use: "build [OPTIONS] PATH | URL | -", Short: "Build an image from a Dockerfile", Args: cli.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { diff --git a/api/client/image/push.go b/api/client/image/push.go index 35d1645952..1526b2a26b 100644 --- a/api/client/image/push.go +++ b/api/client/image/push.go @@ -14,7 +14,7 @@ import ( // NewPushCommand creates a new `docker push` command func NewPushCommand(dockerCli *client.DockerCli) *cobra.Command { cmd := &cobra.Command{ - Use: "push NAME[:TAG]", + Use: "push [OPTIONS] NAME[:TAG]", Short: "Push an image or a repository to a registry", Args: cli.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error {