Browse code

Merge pull request #8993 from SvenDowideit/make-ps-size-docs-clearer

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

Jessie Frazelle authored on 2014/11/18 09:42:27
Showing 4 changed files
... ...
@@ -1542,7 +1542,7 @@ func (cli *DockerCli) CmdPs(args ...string) error {
1542 1542
 
1543 1543
 		cmd      = cli.Subcmd("ps", "", "List containers")
1544 1544
 		quiet    = cmd.Bool([]string{"q", "-quiet"}, false, "Only display numeric IDs")
1545
-		size     = cmd.Bool([]string{"s", "-size"}, false, "Display sizes")
1545
+		size     = cmd.Bool([]string{"s", "-size"}, false, "Display total file sizes")
1546 1546
 		all      = cmd.Bool([]string{"a", "-all"}, false, "Show all containers. Only running containers are shown by default.")
1547 1547
 		noTrunc  = cmd.Bool([]string{"#notrunc", "-no-trunc"}, false, "Don't truncate output")
1548 1548
 		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)
... ...
@@ -1068,7 +1068,7 @@ for further details.
1068 1068
       -n=-1                 Show n last created containers, include non-running ones.
1069 1069
       --no-trunc=false      Don't truncate output
1070 1070
       -q, --quiet=false     Only display numeric IDs
1071
-      -s, --size=false      Display sizes
1071
+      -s, --size=false      Display total file sizes
1072 1072
       --since=""            Show only containers created since Id or Name, include non-running ones.
1073 1073
 
1074 1074
 Running `docker ps` showing 2 linked containers.