mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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>
This commit is contained in:
parent
635af8628c
commit
df3e44cab1
1 changed files with 2 additions and 2 deletions
|
@ -108,10 +108,10 @@ (define-command (guix-import . args)
|
|||
(()
|
||||
(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 ...))
|
||||
|
|
Loading…
Reference in a new issue