summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-09-07 11:30:44 +0200
committerLudovic Courtès <ludo@gnu.org>2017-09-07 13:57:42 +0200
commitfb25508856b5dc646b1a9771c70eaa071cee6742 (patch)
treec3c04cea14489168695b31e3ec54ec3be6cb1420
parentc2ffcc4425946725f843466680b89b9b0aa1f45e (diff)
size: Default to '--sort=self'.
* guix/scripts/size.scm (%default-options): Change default value for 'profile<?. * doc/guix.texi (Invoking guix size): Adjust accordingly.
-rw-r--r--doc/guix.texi6
-rw-r--r--guix/scripts/size.scm2
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 3e9593d0cb..68f0aa2aa8 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -6383,10 +6383,10 @@ Use substitute information from @var{urls}.
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.
+the size of each item (the default);
+@item closure
+the total size of the item's closure.
@end table
@item --map-file=@var{file}
diff --git a/guix/scripts/size.scm b/guix/scripts/size.scm
index 1e54d3f218..eade184e67 100644
--- a/guix/scripts/size.scm
+++ b/guix/scripts/size.scm
@@ -282,7 +282,7 @@ Report the size of PACKAGE and its dependencies.\n"))
(define %default-options
`((system . ,(%current-system))
- (profile<? . ,profile-closure<?)))
+ (profile<? . ,profile-self<?)))
;;;