mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix incorrect help output in docker network ls
As is raised in 26312, in `docker network ls`, the help output was
mistaken to `volume names`:
```
-q, --quiet Only display volume names
```
This fix changes the help output to:
```
-q, --quiet Only display network IDs
```
This fix also updates the documentation in:
`docs/reference/commandline/network_ls.md`
This fix fixes 26312.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
(cherry picked from commit b9e46235fa
)
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
24df982128
commit
e892a54fa1
3 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ func newListCommand(dockerCli *client.DockerCli) *cobra.Command {
|
|||
}
|
||||
|
||||
flags := cmd.Flags()
|
||||
flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Only display volume names")
|
||||
flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Only display network IDs")
|
||||
flags.BoolVar(&opts.noTrunc, "no-trunc", false, "Do not truncate the output")
|
||||
flags.StringSliceVarP(&opts.filter, "filter", "f", []string{}, "Provide filter values (i.e. 'dangling=true')")
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ Options:
|
|||
-f, --filter value Provide filter values (i.e. 'dangling=true') (default [])
|
||||
--help Print usage
|
||||
--no-trunc Do not truncate the output
|
||||
-q, --quiet Only display volume names
|
||||
-q, --quiet Only display network IDs
|
||||
```
|
||||
|
||||
Lists all the networks the Engine `daemon` knows about. This includes the
|
||||
|
|
|
@ -166,7 +166,7 @@ attached.
|
|||
Do not truncate the output
|
||||
|
||||
**-q**, **--quiet**=*true*|*false*
|
||||
Only display numeric IDs
|
||||
Only display network IDs
|
||||
|
||||
**--help**
|
||||
Print usage statement
|
||||
|
|
Loading…
Reference in a new issue