浏览代码

Merge pull request #23731 from WeiZhang555/fix-help

Make --help information consistent
Sebastiaan van Stijn 9 年之前
父节点
当前提交
70e47c4f75
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      api/client/image/build.go
  2. 1 1
      api/client/image/push.go

+ 1 - 1
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 {

+ 1 - 1
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 {