guix-build: Fix the "unrecognized option" error message.
* guix-build.in (guix-build): Show the option name when an unrecognized option is passed.
This commit is contained in:
parent
e815763e69
commit
8759a648ba
@ -132,7 +132,7 @@ Report bugs to: ~a.~%") "@PACKAGE_BUGREPORT@"))
|
|||||||
;; Return the alist of option values.
|
;; Return the alist of option values.
|
||||||
(args-fold args %options
|
(args-fold args %options
|
||||||
(lambda (opt name arg result)
|
(lambda (opt name arg result)
|
||||||
(leave (_ "~A: unrecognized option~%") opt))
|
(leave (_ "~A: unrecognized option~%") name))
|
||||||
(lambda (arg result)
|
(lambda (arg result)
|
||||||
(alist-cons 'argument arg result))
|
(alist-cons 'argument arg result))
|
||||||
%default-options))
|
%default-options))
|
||||||
|
Loading…
Reference in New Issue
Block a user