summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorHerman Rimm <herman@rimm.ee>2024-02-20 21:45:14 +0100
committerLudovic Courtès <ludo@gnu.org>2024-02-23 19:02:38 +0100
commitdf3e44cab1078ac6e84df9059a5acccdf9486700 (patch)
tree47ecf2e316a601028da4715f989a71087233f9d1 /guix
parent635af8628c096526e3a79348f484e641aa05f04a (diff)
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>
Diffstat (limited to 'guix')
-rw-r--r--guix/scripts/import.scm4
1 files 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 ...))