scripts: package: Handle EPIPE errors when displaying help.

Reported by Mathieu Othacehe <othacehe@gnu.org>.

* guix/scripts/package.scm (%options): Handle EPIPE errors when displaying
help.
This commit is contained in:
Simon Tournier 2023-10-16 17:26:31 +02:00
parent 61a7e16d8d
commit 4451982ac4
No known key found for this signature in database
GPG key ID: 92F1D22C608EE7E5

View file

@ -504,7 +504,7 @@ (define %options
;; Specification of the command-line options.
(cons* (option '(#\h "help") #f #f
(lambda args
(show-help)
(leave-on-EPIPE (show-help))
(exit 0)))
(option '(#\V "version") #f #f
(lambda args