summaryrefslogtreecommitdiff
path: root/guix/scripts/size.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/scripts/size.scm')
-rw-r--r--guix/scripts/size.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/guix/scripts/size.scm b/guix/scripts/size.scm
index eade184e67..dee3604174 100644
--- a/guix/scripts/size.scm
+++ b/guix/scripts/size.scm
@@ -291,7 +291,12 @@ Report the size of PACKAGE and its dependencies.\n"))
(define (guix-size . 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 (G_ "~A: unrecognized option~%") name))
+ (lambda (arg result)
+ (alist-cons 'argument arg result))
+ %default-options))
(files (filter-map (match-lambda
(('argument . file) file)
(_ #f))