aboutsummaryrefslogtreecommitdiff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-09-02 15:23:52 +0200
committerLudovic Courtès <ludo@gnu.org>2015-09-02 23:40:07 +0200
commit4c8f997a7d6f4c9d7eae73804e9784b4562eb213 (patch)
tree57218881248955596a4092d4216bec1a7f43b130 /doc/guix.texi
parent4650a77ea8b3ada17f94a4a3b2004f172d0a1498 (diff)
downloadguix-4c8f997a7d6f4c9d7eae73804e9784b4562eb213.tar
guix-4c8f997a7d6f4c9d7eae73804e9784b4562eb213.tar.gz
graph: Add '--expression'.
* guix/scripts/graph.scm (%options, show-help): Add '--expression'. (guix-graph): Call 'read/eval-package-expression' for 'expression' pairs in OPTS. * tests/guix-graph.sh: Add tests. * doc/guix.texi (Invoking guix graph): Document it.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 6defb0bda7..f943540ac8 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -4417,6 +4417,16 @@ the values listed above.
@item --list-types
List the supported graph types.
+
+@item --expression=@var{expr}
+@itemx -e @var{expr}
+Consider the package @var{expr} evaluates to.
+
+This is useful to precisely refer to a package, as in this example:
+
+@example
+guix graph -e '(@@@@ (gnu packages commencement) gnu-make-final)'
+@end example
@end table