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
1 changed files with 3 additions and 2 deletions

View File

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