scripts: import: Handle EPIPE errors when displaying help.

* guix/scripts/import.scm (%options): Handle EPIPE errors when displaying help.
This commit is contained in:
Simon Tournier 2023-10-16 17:53:21 +02:00
parent f7c274c403
commit 79b6eef750
No known key found for this signature in database
GPG Key ID: 92F1D22C608EE7E5
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ Run IMPORTER with ARGS.\n"))
(format (current-error-port)
(G_ "guix import: missing importer name~%")))
((or ("-h") ("--help"))
(show-help)
(leave-on-EPIPE (show-help))
(exit 0))
((or ("-V") ("--version"))
(show-version-and-exit "guix import"))