[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/13: ui: Add top-level options to help text.
From: |
guix-commits |
Subject: |
06/13: ui: Add top-level options to help text. |
Date: |
Sat, 30 Oct 2021 18:58:33 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 943dd59beb5b30437f940405fd2b56fea73764cb
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sat Oct 30 15:48:48 2021 +0200
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.
---
guix/ui.scm | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/guix/ui.scm b/guix/ui.scm
index eb7f0af..4b4f21d 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -2098,8 +2098,15 @@ contain a 'define-command' form."
(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"))
- branch master updated (c4ac8cf -> 84c6f17), guix-commits, 2021/10/30
- 01/13: gnu: bsequencer: Update to 1.8.10., guix-commits, 2021/10/30
- 02/13: gnu: bchoppr: Update to 1.10.10., guix-commits, 2021/10/30
- 03/13: gnu: bshapr: Update to 0.13., guix-commits, 2021/10/30
- 04/13: gnu: bjumblr: Update to 1.6.8., guix-commits, 2021/10/30
- 06/13: ui: Add top-level options to help text.,
guix-commits <=
- 07/13: ui: Use DISPLAY in SHOW-GUIX-HELP., guix-commits, 2021/10/30
- 08/13: bash completion: Don't hard-code "guix" binary name., guix-commits, 2021/10/30
- 12/13: gnu: remmina: Update to 1.4.21., guix-commits, 2021/10/30
- 13/13: gnu: dconf: Increase test timeout further., guix-commits, 2021/10/30
- 05/13: gnu: bschaffl: Update to 1.4.8., guix-commits, 2021/10/30
- 09/13: bash completion: Complete top-level options., guix-commits, 2021/10/30
- 10/13: gnu: polybar: Update to 3.5.7., guix-commits, 2021/10/30
- 11/13: gnu: aws-c-mqtt: Update to 0.7.8., guix-commits, 2021/10/30