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/hash.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/hash.scm')
-rw-r--r-- | guix/scripts/hash.scm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/guix/scripts/hash.scm b/guix/scripts/hash.scm index ad05a4e66f..deded63136 100644 --- a/guix/scripts/hash.scm +++ b/guix/scripts/hash.scm @@ -90,13 +90,13 @@ Supported formats: 'nix-base32' (default), 'base32', and 'base16' (define (guix-hash . args) (define (parse-options) ;; Return the alist of option values. - (args-fold args %options - (lambda (opt name arg result) - (leave (_ "unrecognized option: ~a~%") - name)) - (lambda (arg result) - (alist-cons 'argument arg result)) - %default-options)) + (args-fold* args %options + (lambda (opt name arg result) + (leave (_ "unrecognized option: ~a~%") + name)) + (lambda (arg result) + (alist-cons 'argument arg result)) + %default-options)) (let* ((opts (parse-options)) (args (filter-map (match-lambda |