[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: import: Discard args after --version and --help.
From: |
guix-commits |
Subject: |
06/07: import: Discard args after --version and --help. |
Date: |
Fri, 23 Feb 2024 14:51:41 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit df3e44cab1078ac6e84df9059a5acccdf9486700
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Tue Feb 20 21:45:14 2024 +0100
import: Discard args after --version and --help.
* guix/scripts/import.scm (guix-import): Discard args.
Change-Id: Icce5cd0daf9011f7ddde7904113b31b547f063ef
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
guix/scripts/import.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/guix/scripts/import.scm b/guix/scripts/import.scm
index aca4e61f26..1f34cab088 100644
--- a/guix/scripts/import.scm
+++ b/guix/scripts/import.scm
@@ -108,10 +108,10 @@ PROC callback."
(()
(format (current-error-port)
(G_ "guix import: missing importer name~%")))
- ((or ("-h") ("--help"))
+ ((or ("-h" _ ...) ("--help" _ ...))
(leave-on-EPIPE (show-help))
(exit 0))
- ((or ("-V") ("--version"))
+ ((or ("-V" _ ...) ("--version" _ ...))
(show-version-and-exit "guix import"))
((or ("-i" file importer args ...)
("--insert" file importer args ...))
- branch master updated (e7990b1217 -> b386c11e78), guix-commits, 2024/02/23
- 03/07: utils: Add insert-expression procedure., guix-commits, 2024/02/23
- 02/07: import: Wrap package expressions with define-public., guix-commits, 2024/02/23
- 01/07: doc: Note SVN dependency of texlive importer., guix-commits, 2024/02/23
- 05/07: import: Insert packages into modules alphabetically., guix-commits, 2024/02/23
- 06/07: import: Discard args after --version and --help.,
guix-commits <=
- 07/07: import: Do not return package name with json importer., guix-commits, 2024/02/23
- 04/07: utils: Add find-definition-insertion-location procedure., guix-commits, 2024/02/23