aboutsummaryrefslogtreecommitdiff
path: root/guix/scripts/build.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-04-27 16:46:39 +0200
committerLudovic Courtès <ludo@gnu.org>2013-04-27 16:46:39 +0200
commita5975cedf27b3cb149629fe16846a6aeff17a96b (patch)
tree7c1be73feb1ebd8605e4fad462bdb3d9feec1959 /guix/scripts/build.scm
parent14e2afa74ba5653f263ecfc0b89c704bed237bd5 (diff)
downloadgnu-guix-a5975cedf27b3cb149629fe16846a6aeff17a96b.tar
gnu-guix-a5975cedf27b3cb149629fe16846a6aeff17a96b.tar.gz
ui: Add `args-fold*' and use it.
* guix/ui.scm (args-fold*): New procedure. * guix/scripts/build.scm, guix/scripts/download.scm, guix/scripts/gc.scm, guix/scripts/hash.scm, guix/scripts/import.scm, guix/scripts/package.scm, guix/scripts/pull.scm, guix/scripts/refresh.scm: Use `args-fold*' instead of `args-fold'.
Diffstat (limited to 'guix/scripts/build.scm')
-rw-r--r--guix/scripts/build.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm
index 0bf154dd41..4464d84dfc 100644
--- a/guix/scripts/build.scm
+++ b/guix/scripts/build.scm
@@ -149,12 +149,12 @@ Build the given PACKAGE-OR-DERIVATION and return their output paths.\n"))
(define (guix-build . args)
(define (parse-options)
;; Return the alist of option values.
- (args-fold args %options
- (lambda (opt name arg result)
- (leave (_ "~A: unrecognized option~%") name))
- (lambda (arg result)
- (alist-cons 'argument arg result))
- %default-options))
+ (args-fold* args %options
+ (lambda (opt name arg result)
+ (leave (_ "~A: unrecognized option~%") name))
+ (lambda (arg result)
+ (alist-cons 'argument arg result))
+ %default-options))
(define (register-root paths root)
;; Register ROOT as an indirect GC root for all of PATHS.