summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-11-10 22:24:38 +0100
committerLudovic Courtès <ludo@gnu.org>2015-11-11 00:37:51 +0100
commit2ab5fdc4b4b340ffabaeb582fa1b19e4836fc27e (patch)
treebcaf0c070067b2ef8c2bad25f547632e10bf9deb /guix
parentfc2d2339644b408574f0ead4436e751fa423a7e6 (diff)
downloadguix-patches-2ab5fdc4b4b340ffabaeb582fa1b19e4836fc27e.tar
guix-patches-2ab5fdc4b4b340ffabaeb582fa1b19e4836fc27e.tar.gz
ui: 'guix help COMMAND' is like 'guix COMMAND --help'.
* guix/ui.scm (run-guix): Add ("help" COMMAND) case.
Diffstat (limited to 'guix')
-rw-r--r--guix/ui.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/ui.scm b/guix/ui.scm
index 312c2a01a1..581fb941f5 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -1191,6 +1191,9 @@ and signal handling has already been set up."
(format (current-error-port)
(_ "guix: unrecognized option '~a'~%") o)
(show-guix-usage))
+ (("help" command)
+ (apply run-guix-command (string->symbol command)
+ '("--help")))
(("help" args ...)
(show-guix-help))
((command args ...)