scripts: container: Handle EPIPE errors when displaying help.

* guix/scripts/container.scm (%options): Handle EPIPE errors when displaying
help.
This commit is contained in:
Simon Tournier 2023-10-16 18:50:12 +02:00
parent 2ac8e95dba
commit f814d33cbd
No known key found for this signature in database
GPG Key ID: 92F1D22C608EE7E5

View File

@ -57,7 +57,7 @@ Build and manipulate Linux containers.\n"))
(format (current-error-port)
(G_ "guix container: missing action~%")))
((or ("-h") ("--help"))
(show-help)
(leave-on-EPIPE (show-help))
(exit 0))
((or ("-V") ("--version"))
(show-version-and-exit "guix container"))