guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/04: graph: Ignore 'GUIX_BUILD_OPTIONS'.


From: Ludovic Courtès
Subject: 03/04: graph: Ignore 'GUIX_BUILD_OPTIONS'.
Date: Wed, 02 Mar 2016 13:56:44 +0000

civodul pushed a commit to branch master
in repository guix.

commit 637cd1254320fd89fe6d910b3fa7665b19487072
Author: Ludovic Courtès <address@hidden>
Date:   Wed Mar 2 14:42:39 2016 +0100

    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'.
---
 guix/scripts/graph.scm |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/guix/scripts/graph.scm b/guix/scripts/graph.scm
index 2d1c1ff..b0d7c08 100644
--- a/guix/scripts/graph.scm
+++ b/guix/scripts/graph.scm
@@ -341,8 +341,12 @@ Emit a Graphviz (dot) representation of the dependencies 
of PACKAGE...\n"))
 
 (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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]