mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
graph: Ignore 'GUIX_BUILD_OPTIONS'.
Previously 'GUIX_BUILD_OPTIONS' would be honored, but 'guix graph' does not support the common build options. * guix/scripts/graph.scm (guix-graph): Use 'args-fold*' instead of 'parse-command-line'.
This commit is contained in:
parent
7573d30ff8
commit
637cd12543
1 changed files with 6 additions and 2 deletions
|
@ -341,8 +341,12 @@ (define %default-options
|
|||
|
||||
(define (guix-graph . args)
|
||||
(with-error-handling
|
||||
(let* ((opts (parse-command-line args %options
|
||||
(list %default-options)))
|
||||
(let* ((opts (args-fold* args %options
|
||||
(lambda (opt name arg . rest)
|
||||
(leave (_ "~A: unrecognized option~%") name))
|
||||
(lambda (arg result)
|
||||
(alist-cons 'argument arg result))
|
||||
%default-options))
|
||||
(type (assoc-ref opts 'node-type))
|
||||
(packages (filter-map (match-lambda
|
||||
(('argument . spec)
|
||||
|
|
Loading…
Reference in a new issue