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 <zhangwei555@huawei.com>
| ... | ... |
@@ -67,7 +67,7 @@ func NewBuildCommand(dockerCli *client.DockerCli) *cobra.Command {
|
| 67 | 67 |
} |
| 68 | 68 |
|
| 69 | 69 |
cmd := &cobra.Command{
|
| 70 |
- Use: "build PATH | URL | -", |
|
| 70 |
+ Use: "build [OPTIONS] PATH | URL | -", |
|
| 71 | 71 |
Short: "Build an image from a Dockerfile", |
| 72 | 72 |
Args: cli.ExactArgs(1), |
| 73 | 73 |
RunE: func(cmd *cobra.Command, args []string) error {
|
| ... | ... |
@@ -14,7 +14,7 @@ import ( |
| 14 | 14 |
// NewPushCommand creates a new `docker push` command |
| 15 | 15 |
func NewPushCommand(dockerCli *client.DockerCli) *cobra.Command {
|
| 16 | 16 |
cmd := &cobra.Command{
|
| 17 |
- Use: "push NAME[:TAG]", |
|
| 17 |
+ Use: "push [OPTIONS] NAME[:TAG]", |
|
| 18 | 18 |
Short: "Push an image or a repository to a registry", |
| 19 | 19 |
Args: cli.ExactArgs(1), |
| 20 | 20 |
RunE: func(cmd *cobra.Command, args []string) error {
|