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/import.scm | |
parent | 14e2afa74ba5653f263ecfc0b89c704bed237bd5 (diff) | |
download | gnu-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/import.scm')
-rw-r--r-- | guix/scripts/import.scm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/guix/scripts/import.scm b/guix/scripts/import.scm index 0b95afced1..6f75017d6e 100644 --- a/guix/scripts/import.scm +++ b/guix/scripts/import.scm @@ -95,12 +95,12 @@ Import and convert the Nix expression ATTRIBUTE of NIXPKGS.\n")) (define (guix-import . 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)) (let* ((opts (parse-options)) (args (filter-map (match-lambda |