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
parent
635af8628c
commit
df3e44cab1
|
@ -108,10 +108,10 @@ PROC callback."
|
||||||
(()
|
(()
|
||||||
(format (current-error-port)
|
(format (current-error-port)
|
||||||
(G_ "guix import: missing importer name~%")))
|
(G_ "guix import: missing importer name~%")))
|
||||||
((or ("-h") ("--help"))
|
((or ("-h" _ ...) ("--help" _ ...))
|
||||||
(leave-on-EPIPE (show-help))
|
(leave-on-EPIPE (show-help))
|
||||||
(exit 0))
|
(exit 0))
|
||||||
((or ("-V") ("--version"))
|
((or ("-V" _ ...) ("--version" _ ...))
|
||||||
(show-version-and-exit "guix import"))
|
(show-version-and-exit "guix import"))
|
||||||
((or ("-i" file importer args ...)
|
((or ("-i" file importer args ...)
|
||||||
("--insert" file importer args ...))
|
("--insert" file importer args ...))
|
||||||
|
|
Reference in New Issue