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
1 changed files with 3 additions and 0 deletions

View 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 ...)