ui: 'guix help COMMAND' is like 'guix COMMAND --help'.
authorLudovic Courtès <ludo@gnu.org>
Tue, 10 Nov 2015 21:24:38 +0000 (22:24 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 10 Nov 2015 23:37:51 +0000 (00:37 +0100)
* guix/ui.scm (run-guix): Add ("help" COMMAND) case.

guix/ui.scm

index 312c2a0..581fb94 100644 (file)
@@ -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 ...)