aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-07-12 15:41:49 +0200
committerLudovic Courtès <ludo@gnu.org>2017-07-12 21:56:17 +0200
commita6c1fe824002d022ff3ba7c8b93987965db29641 (patch)
tree524d954be970d247357f6b3092d59060a052b491 /doc
parent1ac3a488ad9724ecc45450c57eab2d360f274303 (diff)
downloadpatches-a6c1fe824002d022ff3ba7c8b93987965db29641.tar
patches-a6c1fe824002d022ff3ba7c8b93987965db29641.tar.gz
size: Add '--sort=KEY'.
* guix/scripts/size.scm (profile-closure<?, profile-self<?): New procedures. (display-profile): Add #:profile<? parameter and honor it. (show-help, %options): Add '--sort'. (%default-options): Add 'profile<?'. (guix-size): Pass PROFILE<? to 'display-profile*'. * doc/guix.texi (Invoking guix size): Document '--sort'.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 6cf20aa09f..dc764cc292 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -6338,6 +6338,16 @@ The available options are:
Use substitute information from @var{urls}.
@xref{client-substitute-urls, the same option for @code{guix build}}.
+@item --sort=@var{key}
+Sort lines according to @var{key}, one of the following options:
+
+@table @code
+@item closure
+the total size of the item's closure (the default);
+@item self
+the size of each item.
+@end table
+
@item --map-file=@var{file}
Write a graphical map of disk usage in PNG format to @var{file}.