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 {