Browse code

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>

Yong Tang authored on 2016/09/05 19:11:14
Showing 3 changed files
... ...
@@ -40,7 +40,7 @@ func newListCommand(dockerCli *client.DockerCli) *cobra.Command {
40 40
 	}
41 41
 
42 42
 	flags := cmd.Flags()
43
-	flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Only display volume names")
43
+	flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Only display network IDs")
44 44
 	flags.BoolVar(&opts.noTrunc, "no-trunc", false, "Do not truncate the output")
45 45
 	flags.StringVar(&opts.format, "format", "", "Pretty-print networks using a Go template")
46 46
 	flags.StringSliceVarP(&opts.filter, "filter", "f", []string{}, "Provide filter values (i.e. 'dangling=true')")
... ...
@@ -23,7 +23,7 @@ Options:
23 23
       --format string  Pretty-print networks using a Go template
24 24
       --help           Print usage
25 25
       --no-trunc       Do not truncate the output
26
-  -q, --quiet          Only display volume names
26
+  -q, --quiet          Only display network IDs
27 27
 ```
28 28
 
29 29
 Lists all the networks the Engine `daemon` knows about. This includes the
... ...
@@ -179,7 +179,7 @@ attached.
179 179
   Do not truncate the output
180 180
 
181 181
 **-q**, **--quiet**=*true*|*false*
182
-  Only display numeric IDs
182
+  Only display network IDs
183 183
 
184 184
 **--help**
185 185
   Print usage statement