me
/
guix
Archived
1
0
Fork 0

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>
master
Herman Rimm 2024-02-20 21:45:14 +01:00 committed by Ludovic Courtès
parent 635af8628c
commit df3e44cab1
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 2 deletions

View File

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