ui: 'guix help COMMAND' is like 'guix COMMAND --help'.

* guix/ui.scm (run-guix): Add ("help" COMMAND) case.
This commit is contained in:
Ludovic Courtès 2015-11-10 22:24:38 +01:00
parent fc2d233964
commit 2ab5fdc4b4

View file

@ -1191,6 +1191,9 @@ (define option? (cut string-prefix? "-" <>))
(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 ...)