mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 03:15:09 -05:00
ui: Add top-level options to help text.
This also makes automated ‘guix --h<Tab>’ completion possible. * guix/ui.scm (show-guix-help): Document that an OPTION's an option, and all valid options.
This commit is contained in:
parent
c73d1e68cf
commit
943dd59beb
1 changed files with 9 additions and 2 deletions
11
guix/ui.scm
11
guix/ui.scm
|
@ -2098,8 +2098,15 @@ (define (category-predicate category)
|
|||
(lambda (command)
|
||||
(eq? category (command-category command))))
|
||||
|
||||
(format #t (G_ "Usage: guix COMMAND ARGS...
|
||||
Run COMMAND with ARGS.\n"))
|
||||
(format #t (G_ "Usage: guix OPTION | COMMAND ARGS...
|
||||
Run COMMAND with ARGS, if given.\n"))
|
||||
|
||||
(display (G_ "
|
||||
-h, --help display this helpful text again and exit"))
|
||||
(display (G_ "
|
||||
-V, --version display version and copyright information and exit"))
|
||||
(newline)
|
||||
|
||||
(newline)
|
||||
(format #t (G_ "COMMAND must be one of the sub-commands listed below:\n"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue