diff options
author | Herman Rimm <herman@rimm.ee> | 2024-02-20 21:45:14 +0100 |
---|---|---|
committer | Josselin Poiret <dev@jpoiret.xyz> | 2024-03-09 15:55:48 +0100 |
commit | de49a98efd89dc7a43a4c7f989e1bf5931ebe67b (patch) | |
tree | a8007a9d2af55f2a5f4ca1db937b312b2b23dba6 /guix | |
parent | 614e4493b06ffe97df83b2ff91d79f12d873c73c (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.scm | 4 |
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 ...)) |