diff options
author | Ludovic Courtès <ludo@gnu.org> | 2013-04-27 16:46:39 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2013-04-27 16:46:39 +0200 |
commit | a5975cedf27b3cb149629fe16846a6aeff17a96b (patch) | |
tree | 7c1be73feb1ebd8605e4fad462bdb3d9feec1959 /guix/scripts/package.scm | |
parent | 14e2afa74ba5653f263ecfc0b89c704bed237bd5 (diff) | |
download | guix-patches-a5975cedf27b3cb149629fe16846a6aeff17a96b.tar guix-patches-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/package.scm')
-rw-r--r-- | guix/scripts/package.scm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index c5656efc14..cea49a57f4 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm @@ -446,12 +446,12 @@ Install, remove, or upgrade PACKAGES in a single transaction.\n")) (define (guix-package . 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) - (leave (_ "~A: extraneous argument~%") arg)) - %default-options)) + (args-fold* args %options + (lambda (opt name arg result) + (leave (_ "~A: unrecognized option~%") name)) + (lambda (arg result) + (leave (_ "~A: extraneous argument~%") arg)) + %default-options)) (define (guile-missing?) ;; Return #t if %GUILE-FOR-BUILD is not available yet. |