scripts: offload: Handle EPIPE errors when displaying help.

* guix/scripts/offload.scm (guix-offload): Handle EPIPE errors when displaying
help.
This commit is contained in:
Simon Tournier 2023-10-16 18:42:43 +02:00
parent 55c3776023
commit ef8a615861
No known key found for this signature in database
GPG key ID: 92F1D22C608EE7E5

View file

@ -868,11 +868,12 @@ (define not-coma
(("--version") (("--version")
(show-version-and-exit "guix offload")) (show-version-and-exit "guix offload"))
(("--help") (("--help")
(leave-on-EPIPE
(format #t (G_ "Usage: guix offload SYSTEM MAX-SILENT-TIME \ (format #t (G_ "Usage: guix offload SYSTEM MAX-SILENT-TIME \
PRINT-BUILD-TRACE? BUILD-TIMEOUT PRINT-BUILD-TRACE? BUILD-TIMEOUT
Process build offload requests written on the standard input, possibly Process build offload requests written on the standard input, possibly
offloading builds to the machines listed in '~a'.~%") offloading builds to the machines listed in '~a'.~%")
%machine-file) %machine-file))
(display (G_ " (display (G_ "
This tool is meant to be used internally by 'guix-daemon'.\n")) This tool is meant to be used internally by 'guix-daemon'.\n"))
(show-bug-report-information)) (show-bug-report-information))