소스 검색

Merge pull request #26182 from yuexiao-wang/add-options

Miss the options in some commands
Vincent Demeester 8 년 전
부모
커밋
ba23bf202a
4개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      api/client/plugin/list.go
  2. 1 1
      api/client/system/info.go
  3. 1 1
      docs/reference/commandline/info.md
  4. 1 1
      docs/reference/commandline/plugin_ls.md

+ 1 - 1
api/client/plugin/list.go

@@ -22,7 +22,7 @@ func newListCommand(dockerCli *client.DockerCli) *cobra.Command {
 	var opts listOptions
 
 	cmd := &cobra.Command{
-		Use:     "ls",
+		Use:     "ls [OPTIONS]",
 		Short:   "List plugins",
 		Aliases: []string{"list"},
 		Args:    cli.NoArgs,

+ 1 - 1
api/client/system/info.go

@@ -27,7 +27,7 @@ func NewInfoCommand(dockerCli *client.DockerCli) *cobra.Command {
 	var opts infoOptions
 
 	cmd := &cobra.Command{
-		Use:   "info",
+		Use:   "info [OPTIONS]",
 		Short: "Display system-wide information",
 		Args:  cli.NoArgs,
 		RunE: func(cmd *cobra.Command, args []string) error {

+ 1 - 1
docs/reference/commandline/info.md

@@ -11,7 +11,7 @@ parent = "smn_cli"
 # info
 
 ```markdown
-Usage:  docker info
+Usage:  docker info [OPTIONS]
 
 Display system-wide information
 

+ 1 - 1
docs/reference/commandline/plugin_ls.md

@@ -12,7 +12,7 @@ parent = "smn_cli"
 # plugin ls (experimental)
 
 ```markdown
-Usage:  docker plugin ls
+Usage:  docker plugin ls [OPTIONS]
 
 List plugins