Browse code

makes the -s --size option documentation clearer #8950

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

Sven Dowideit authored on 2014/11/06 12:39:42
Showing 4 changed files
... ...
@@ -1523,7 +1523,7 @@ func (cli *DockerCli) CmdPs(args ...string) error {
1523 1523
 
1524 1524
 		cmd      = cli.Subcmd("ps", "", "List containers")
1525 1525
 		quiet    = cmd.Bool([]string{"q", "-quiet"}, false, "Only display numeric IDs")
1526
-		size     = cmd.Bool([]string{"s", "-size"}, false, "Display sizes")
1526
+		size     = cmd.Bool([]string{"s", "-size"}, false, "Display total file sizes")
1527 1527
 		all      = cmd.Bool([]string{"a", "-all"}, false, "Show all containers. Only running containers are shown by default.")
1528 1528
 		noTrunc  = cmd.Bool([]string{"#notrunc", "-no-trunc"}, false, "Don't truncate output")
1529 1529
 		nLatest  = cmd.Bool([]string{"l", "-latest"}, false, "Show only the latest created container, include non-running ones.")
... ...
@@ -185,7 +185,7 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -s l -l latest -d '
185 185
 complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -s n -d 'Show n last created containers, include non-running ones.'
186 186
 complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -l no-trunc -d "Don't truncate output"
187 187
 complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -s q -l quiet -d 'Only display numeric IDs'
188
-complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -s s -l size -d 'Display sizes'
188
+complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -s s -l size -d 'Display total file sizes'
189 189
 complete -c docker -A -f -n '__fish_seen_subcommand_from ps' -l since -d 'Show only containers created since Id or Name, include non-running ones.'
190 190
 
191 191
 # pull
... ...
@@ -357,7 +357,7 @@ __docker_subcommand () {
357 357
                 '-n[Show n last created containers, include non-running one]:n:(1 5 10 25 50)' \
358 358
                 '--no-trunc[Do not truncate output]' \
359 359
                 {-q,--quiet}'[Only show numeric IDs]' \
360
-                {-s,--size}'[Display sizes]' \
360
+                {-s,--size}'[Display total file sizes]' \
361 361
                 '--since=-[Show only containers created since...]:containers:__docker_containers'
362 362
             ;;
363 363
         (tag)
... ...
@@ -1042,7 +1042,7 @@ for further details.
1042 1042
       -n=-1                 Show n last created containers, include non-running ones.
1043 1043
       --no-trunc=false      Don't truncate output
1044 1044
       -q, --quiet=false     Only display numeric IDs
1045
-      -s, --size=false      Display sizes
1045
+      -s, --size=false      Display total file sizes
1046 1046
       --since=""            Show only containers created since Id or Name, include non-running ones.
1047 1047
 
1048 1048
 Running `docker ps` showing 2 linked containers.