mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 23:06:59 +01:00
scripts: locate: Handle EPIPE errors when displaying help.
* guix/scripts/locate.scm (%options): Handle EPIPE errors when displaying help.
This commit is contained in:
parent
078107289a
commit
55c3776023
1 changed files with 1 additions and 1 deletions
|
@ -543,7 +543,7 @@ (define (show-help)
|
|||
|
||||
(define %options
|
||||
(list (option '(#\h "help") #f #f
|
||||
(lambda args (show-help) (exit 0)))
|
||||
(lambda args (leave-on-EPIPE (show-help)) (exit 0)))
|
||||
(option '(#\V "version") #f #f
|
||||
(lambda (opt name arg result)
|
||||
(show-version-and-exit "guix locate")))
|
||||
|
|
Loading…
Reference in a new issue