scripts: weather: Handle EPIPE errors when displaying help.

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

View file

@ -360,7 +360,7 @@ (define (show-help)
(define %options (define %options
(cons* (option '(#\h "help") #f #f (cons* (option '(#\h "help") #f #f
(lambda args (lambda args
(show-help) (leave-on-EPIPE (show-help))
(exit 0))) (exit 0)))
(option '(#\V "version") #f #f (option '(#\V "version") #f #f
(lambda args (lambda args