scripts: git: Handle EPIPE errors when displaying help.

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

View File

@ -56,7 +56,7 @@ Operate on Git repositories.\n"))
(format (current-error-port)
(G_ "guix git: missing sub-command~%")))
((or ("-h") ("--help"))
(show-help)
(leave-on-EPIPE (show-help))
(exit 0))
((or ("-V") ("--version"))
(show-version-and-exit "guix git"))